feat(editor): configure undotree plugin for improved usability
This commit is contained in:
1 file changed
+10
-2
+10
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user