mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat: add undo tree
This commit is contained in:
parent
f8268faa7c
commit
c8121b7191
1 changed files with 13 additions and 0 deletions
13
lua/lazyvim/plugins/extras/editor/undotree.lua
Normal file
13
lua/lazyvim/plugins/extras/editor/undotree.lua
Normal 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,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue