Skip to content

Commit 28858a6

Browse files
committed
Replace undotree plugin by the built-in functionality
1 parent cffb685 commit 28858a6

File tree

3 files changed

+5
-18
lines changed

3 files changed

+5
-18
lines changed

lua/keymaps.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,5 @@ vim.keymap.set('n', ']b', bnext, { desc = 'Next buffer' })
8787
vim.keymap.set('n', '[b', bprevious, { desc = 'Prev buffer' })
8888

8989
vim.keymap.set('n', '<leader>ll', vim.diagnostic.setloclist, { desc = 'Diagnostic list' })
90+
91+
vim.keymap.set('n', '<leader>u', '<Cmd>Undotree<CR>', { desc = 'Undo Tree' })

lua/misc.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
local custom = require 'custom'
22

3+
-- Enable the build-in undotree plugin.
4+
vim.cmd.packadd 'nvim.undotree'
5+
36
-- Remove help information from the popup menu.
47
vim.cmd.aunmenu [[PopUp.How-to\ disable\ mouse]]
58
vim.cmd.aunmenu [[PopUp.-1-]]

lua/plugins/tool/undotree.lua

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)