summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/custom
diff options
context:
space:
mode:
authorKyren223 <ulmliad223@gmail.com>2024-07-07 12:51:08 +0300
committerKyren223 <ulmliad223@gmail.com>2024-07-07 12:51:08 +0300
commitb0f17bac68a172878904e0b20aeb38d713c94cb7 (patch)
tree754afbc9d5c7e258cfe9ff4790b1e68737f94dac /.config/nvim/lua/custom
parentc1a35224a8ab2418f63d1b51d9afc5c9f7d45b74 (diff)
Neovim: configured undotree and added hiding it to the zen mode keymap
Diffstat (limited to '.config/nvim/lua/custom')
-rw-r--r--.config/nvim/lua/custom/plugins/utility.lua9
1 files changed, 8 insertions, 1 deletions
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', '<leader>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,
},
}