Improve LSP configs and change keybindings to align with default nvim

0.11 ones
This commit is contained in:
Fábio André Damas 2025-03-27 10:47:46 +00:00
parent f9f53656f7
commit 0eea4c8dab
33 changed files with 656 additions and 553 deletions

18
lua/plugins/undotree.lua Normal file
View file

@ -0,0 +1,18 @@
return {
"mbbill/undotree",
config = function()
if vim.fn.has("persistent_undo") == 1 then
local target_path = vim.fn.expand("~/.undodir")
-- Create the directory if it doesn't exist
if vim.fn.isdirectory(target_path) == 0 then
vim.fn.mkdir(target_path, "p", "0700")
end
-- Set the undodir and enable undo file
vim.o.undodir = target_path
vim.o.undofile = true
end
end
}