update lsp, keymaps, format and some other settings

This commit is contained in:
xesc 2025-02-23 19:36:05 +01:00
parent c8a9410ad7
commit 49c040e36e
25 changed files with 423 additions and 861 deletions

View file

@ -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"
})