Add undotree support

This commit is contained in:
MandavkarPranjal 2024-09-03 15:50:28 +05:30
parent a22976111e
commit 924d5b891b
1 changed files with 6 additions and 0 deletions

View File

@ -908,6 +908,12 @@ require('lazy').setup({
-- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
},
{ -- Review undo history with a tree view
'mbbill/undotree',
event = 'VeryLazy', -- Set the loading event to 'VeryLazy'
vim.keymap.set('n', '<leader>vu', ':UndotreeToggle<CR>', { desc = 'Toggle Undotree' }),
},
-- The following two comments only work if you have downloaded the kickstart repo, not just copy pasted the
-- init.lua. If you want these files, they are in the repository, so you can just download them and
-- place them in the correct locations.