add undotree
This commit is contained in:
parent
1f40a8fd31
commit
caab43bbbf
|
@ -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,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue