feat(editor): configure undotree plugin for improved usability

This commit is contained in:
sankalp committed 2025-10-17 15:41:05 +05:45
1 parent 666b84d4a7
commit ea6661e0cd
1 file changed
+10 -2
+10 -2
View File
@@ -50,11 +50,19 @@ return {
cmd = { 'SudaRead', 'SudaWrite' },
},
-- Undo tree
-- Undo History Visualizer
{
'mbbill/undotree',
cmd = 'UndotreeToggle',
cmd = { 'UndotreeToggle' },
keys = { { '<leader>u', '<cmd>UndotreeToggle<cr>', desc = 'Undo Tree' } },
config = function()
vim.g.undotree_WindowLayout = 2
vim.g.undotree_SetFocusWhenToggle = 1
vim.g.undotree_SplitWidth = 35
vim.g.undotree_DiffpanelHeight = 15
vim.g.undotree_DiffCommand = 'diff --unified=0'
-- vim.g.undotree_DiffCommand = "git diff --no-index --unified=0 --patience"
end,
},
-- visual multi