update lsp, keymaps, format and some other settings
This commit is contained in:
parent
c8a9410ad7
commit
49c040e36e
25 changed files with 423 additions and 861 deletions
|
@ -6,3 +6,15 @@ vim.api.nvim_create_autocmd("Filetype", {
|
|||
pattern = "*",
|
||||
command = "setlocal formatoptions-=c formatoptions-=r formatoptions-=o"
|
||||
})
|
||||
|
||||
-- persistent folds
|
||||
vim.api.nvim_create_autocmd({"BufWinLeave"}, {
|
||||
pattern = {"*.*"},
|
||||
desc = "save view (folds), when closing file",
|
||||
command = "mkview",
|
||||
})
|
||||
vim.api.nvim_create_autocmd({"BufWinEnter"}, {
|
||||
pattern = {"*.*"},
|
||||
desc = "load view (folds), when opening file",
|
||||
command = "silent! loadview"
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue