LazyVIM and some updated configurations
This commit is contained in:
parent
451c1ed56d
commit
7d50f578b1
46 changed files with 1269 additions and 969 deletions
18
nvim/lua/config/autocmds.lua
Normal file
18
nvim/lua/config/autocmds.lua
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
-- 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
|
||||
|
||||
-- turn off paste mode when leaving insert
|
||||
vim.api.nvim_create_autocmd("InsertLeave", {
|
||||
pattern = "*",
|
||||
command = "set nopaste",
|
||||
})
|
||||
|
||||
-- fix conceallevel for json files
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = { "json", "jsonc" },
|
||||
callback = function()
|
||||
vim.wo.spell = false
|
||||
vim.wo.conceallevel = 0
|
||||
end,
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue