diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index ae3bc50..2b39a9c 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -50,11 +50,19 @@ return { cmd = { 'SudaRead', 'SudaWrite' }, }, - -- Undo tree + -- Undo History Visualizer { 'mbbill/undotree', - cmd = 'UndotreeToggle', + cmd = { 'UndotreeToggle' }, keys = { { 'u', 'UndotreeToggle', 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