From 924d5b891b9e8d0de282dd3e788c538105909793 Mon Sep 17 00:00:00 2001 From: MandavkarPranjal Date: Tue, 3 Sep 2024 15:50:28 +0530 Subject: [PATCH] Add undotree support --- init.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/init.lua b/init.lua index 13c8143d..62de02ea 100644 --- a/init.lua +++ b/init.lua @@ -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', 'vu', ':UndotreeToggle', { 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.