dotfiles/config/nvim/lua/fschauen/plugins/undotree.lua

20 lines
499 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

return {
'mbbill/undotree',
init = function()
vim.g.undotree_WindowLayout = 2 -- tree: left, diff: bottom
vim.g.undotree_DiffAutoOpen = 0 -- don't open diff by default
vim.g.undotree_SetFocusWhenToggle = 1
vim.g.undotree_TreeNodeShape = ''
vim.g.undotree_TreeVertShape = ''
vim.g.undotree_TreeSplitShape = ''
vim.g.undotree_TreeReturnShape = ''
end,
config = function()
vim.keymap.set('n', '<leader>u', '<cmd>UndotreeToggle<cr>')
end
}