added modularity: separated files for keymaps, telescope. added undotree plugin. small features like relative line numbers.

This commit is contained in:
psychhim
2025-10-06 16:38:18 +05:30
parent 01d86ce310
commit 289772ff82
8 changed files with 719 additions and 679 deletions

View File

@@ -0,0 +1,14 @@
-- lua/custom/plugins/undotree.lua
return {
'mbbill/undotree',
keys = {
{ '<leader>u', vim.cmd.UndotreeToggle, desc = 'Toggle UndoTree' },
},
config = function()
-- Optional settings
vim.g.undotree_WindowLayout = 2 -- vertical split
vim.g.undotree_SplitWidth = 30 -- width of undo tree window
vim.g.undotree_SetFocusWhenToggle = 1
vim.g.undotree_EnableDiff = 1
end,
}