From c8121b71918d0f015dfc83129e6f403a3e240ace Mon Sep 17 00:00:00 2001 From: Rubin Bhandari Date: Wed, 5 Jun 2024 22:00:10 +0545 Subject: [PATCH] feat: add undo tree --- lua/lazyvim/plugins/extras/editor/undotree.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lua/lazyvim/plugins/extras/editor/undotree.lua diff --git a/lua/lazyvim/plugins/extras/editor/undotree.lua b/lua/lazyvim/plugins/extras/editor/undotree.lua new file mode 100644 index 00000000..b220f16e --- /dev/null +++ b/lua/lazyvim/plugins/extras/editor/undotree.lua @@ -0,0 +1,13 @@ +return { + { + "mbbill/undotree", + cmd = "UndotreeToggle", + keys = { + { "uu", "UndotreeToggle", desc = "Undo Tree Toggle" }, + }, + init = function() + -- set layout style to 2, let g:undotree_WindowLayout = 2 + vim.g.undotree_WindowLayout = 2 + end, + }, +}