editor.undotree
Visualize the undo history tree
Enable
Turn it on with :RafiExtras (Spacemx), or add it to extras in your rafi.json:
json
{ "extras": ["editor.undotree"] }Keymaps
| Key | Description | Mode |
|---|---|---|
| leadergu | Undo Tree | 𝐍 |
Plugins
Source
lua/rafi/extras/editor/undotree.lua
-- Visualize the undo history tree
local pack = require('rafi.pack')
pack.later(function()
vim.pack.add({ 'https://github.com/mbbill/undotree' })
end)
vim.keymap.set(
'n',
'<leader>gu',
'<cmd>UndotreeToggle<CR>',
{ desc = 'Undo Tree' }
)