diff --git a/nvim/.config/nvim/lua/plugin/undotree.lua b/nvim/.config/nvim/lua/plugin/undotree.lua index 33e5b12..b7a7346 100644 --- a/nvim/.config/nvim/lua/plugin/undotree.lua +++ b/nvim/.config/nvim/lua/plugin/undotree.lua @@ -1,8 +1,14 @@ return { - { - "mbbill/undotree", - keys = { - { "u", "UndotreeToggle", desc = "toggle undotree" }, - }, - } + { + "mbbill/undotree", + keys = { + { "u", "UndotreeToggle", desc = "toggle undotree" }, + }, + config = function() + vim.g.undotree_WindowLayout = 4 + vim.g.undotree_SplitWidth = 40 + vim.g.undotree_SetFocusWhenToggle = 1 + end + } } +