feat: add undo tree

This commit is contained in:
Rubin Bhandari 2024-06-05 22:00:10 +05:45 committed by GitHub
parent f8268faa7c
commit c8121b7191
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,13 @@
return {
{
"mbbill/undotree",
cmd = "UndotreeToggle",
keys = {
{ "<leader>uu", "<cmd>UndotreeToggle<cr>", desc = "Undo Tree Toggle" },
},
init = function()
-- set layout style to 2, let g:undotree_WindowLayout = 2
vim.g.undotree_WindowLayout = 2
end,
},
}