mirror of
https://github.com/hyzendust/KickestEnd.nvim.git
synced 2026-02-15 00:21:15 +01:00
15 lines
385 B
Lua
15 lines
385 B
Lua
-- lua/custom/plugins/undotree.lua
|
|
return {
|
|
'mbbill/undotree',
|
|
keys = {
|
|
{ '<leader>u', vim.cmd.UndotreeToggle, desc = 'Toggle UndoTree' },
|
|
},
|
|
config = function()
|
|
-- Optional settings
|
|
vim.g.undotree_WindowLayout = 2 -- vertical split
|
|
vim.g.undotree_SplitWidth = 30 -- width of undo tree window
|
|
vim.g.undotree_SetFocusWhenToggle = 1
|
|
vim.g.undotree_EnableDiff = 1
|
|
end,
|
|
}
|