From b0f17bac68a172878904e0b20aeb38d713c94cb7 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sun, 7 Jul 2024 12:51:08 +0300 Subject: Neovim: configured undotree and added hiding it to the zen mode keymap --- .config/nvim/lua/custom/plugins/utility.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to '.config/nvim/lua/custom') diff --git a/.config/nvim/lua/custom/plugins/utility.lua b/.config/nvim/lua/custom/plugins/utility.lua index 5300850..fe23cda 100644 --- a/.config/nvim/lua/custom/plugins/utility.lua +++ b/.config/nvim/lua/custom/plugins/utility.lua @@ -46,8 +46,15 @@ return { { 'mbbill/undotree', config = function() - vim.g.undotree_DiffAutoOpen = false vim.keymap.set('n', 'ut', vim.cmd.UndotreeToggle) + vim.g.undotree_DiffAutoOpen = false + vim.g.undotree_DiffpanelHeight = 0 + vim.g.undotree_SetFocusWhenToggle = false + vim.g.undotree_HelpLine = false + vim.g.undotree_TreeNodeShape = '' + vim.g.undotree_TreeVertShape = '│' + vim.g.undotree_TreeSplitShape = '─┘' + vim.g.undotree_TreeReturnShape = '─┐' end, }, } -- cgit v1.3.1