add undotree

This commit is contained in:
Christoph J. Scherr 2024-09-05 15:03:16 +02:00
parent 1f40a8fd31
commit caab43bbbf
1 changed files with 9 additions and 0 deletions

View File

@ -82,4 +82,13 @@ return {
cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done()) cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done())
end, end,
}, },
{
'mbbill/undotree',
config = function()
vim.keymap.set({ 'n', 'v' }, '<leader>u', vim.cmd.UndotreeToggle, { desc = '[U]ndo menu' })
vim.g.undotree_WindowLayout = 3
vim.g.undotree_SplitWidth = 32
vim.g.undotree_DiffAutoOpen = false
end,
},
} }