From ea6661e0cdbd61e369e4268dadb10522fcce5ddc Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Fri, 17 Oct 2025 15:41:05 +0545 Subject: [PATCH] feat(editor): configure undotree plugin for improved usability --- lua/plugins/editor.lua | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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