starter/lua/config/autocmds.lua

25 lines
949 B
Lua
Raw Normal View History

2023-01-07 17:52:40 +08:00
-- Autocmds are automatically loaded on the VeryLazy event
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
-- Add any additional autocmds here
2023-10-30 04:04:35 +08:00
-- Check if we need to reload the file when it changed
-- vim.cmd("set laststatus=0")
-- vim.api.nvim_create_autocmd("statusline", {
-- command = "set laststatus=0",
-- })
-- vim.api.nvim_create_autocmd("User", {
-- pattern = "LazyDone",
-- once = true,
-- callback = function()
-- vim.api.nvim_exec_autocmds(":set laststatus = 0", { pattern = "*" })
-- -- vim.notify("Update/Sync/Something is complete!")
-- end,
-- })
2023-11-15 00:48:07 +08:00
-- vim.cmd('hi "IlluminatedWordText guibg=#504945 gui=bold"')
2024-01-06 07:44:50 +08:00
-- vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
-- command = "hi IlluminatedWordText guibg=#504945 gui=bold",
-- })
2023-11-15 00:48:07 +08:00
vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
2024-01-06 07:44:50 +08:00
command = "set foldmethod=manual",
2023-11-15 00:48:07 +08:00
})