From ad2309d0ba38ffe738b4525fe8d1216574525f5b Mon Sep 17 00:00:00 2001 From: pr0c3550r Date: Thu, 4 May 2023 22:00:09 +0200 Subject: [PATCH] Nvim: undotree settings for better visuals --- nvim/.config/nvim/lua/plugin/undotree.lua | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) 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 + } } +