20 lines
590 B
Lua
20 lines
590 B
Lua
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,
|
||
|
||
keys = function()
|
||
local icon = require("fschauen.util.icons").ui.Undo
|
||
return {
|
||
{ "<leader>u", "<cmd>UndotreeToggle<cr>", desc = icon .. " toggle [u]ndo tree" },
|
||
}
|
||
end,
|
||
}
|