From caab43bbbf9bf0d00772bccb9cea5ec9ca7fc147 Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Thu, 5 Sep 2024 15:03:16 +0200 Subject: [PATCH] add undotree --- lua/custom/plugins/editing.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lua/custom/plugins/editing.lua b/lua/custom/plugins/editing.lua index 7b152de..d883387 100644 --- a/lua/custom/plugins/editing.lua +++ b/lua/custom/plugins/editing.lua @@ -82,4 +82,13 @@ return { cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done()) end, }, + { + 'mbbill/undotree', + config = function() + vim.keymap.set({ 'n', 'v' }, 'u', vim.cmd.UndotreeToggle, { desc = '[U]ndo menu' }) + vim.g.undotree_WindowLayout = 3 + vim.g.undotree_SplitWidth = 32 + vim.g.undotree_DiffAutoOpen = false + end, + }, }