feat: add undotree

This commit is contained in:
Tevin79 2025-04-18 06:46:47 +02:00
parent 714f077cb0
commit 1c6d5873dc
1 changed files with 7 additions and 1 deletions

View File

@ -5,7 +5,7 @@ vim.g.mapleader = ' '
vim.g.maplocalleader = ' ' vim.g.maplocalleader = ' '
-- ( Custom remaps -- ( Custom remaps
vim.keymap.set('n', '!', '_') -- For macos only -- vim.keymap.set('n', '!', '_') -- For macos only
-- Center the view when moving -- Center the view when moving
vim.keymap.set('n', '<C-d>', '<C-d>zz') vim.keymap.set('n', '<C-d>', '<C-d>zz')
@ -16,6 +16,10 @@ vim.keymap.set('n', '<leader>pv', vim.cmd.Ex, { desc = '[P]roject files [V]iewer
vim.api.nvim_set_hl(0, 'Normal', { bg = 'none' }) vim.api.nvim_set_hl(0, 'Normal', { bg = 'none' })
vim.api.nvim_set_hl(0, 'NormalFloat', { bg = 'none' }) vim.api.nvim_set_hl(0, 'NormalFloat', { bg = 'none' })
-- Undotree
vim.keymap.set('n', '<F5>', vim.cmd.UndotreeToggle)
-- End of custom remaps ) -- End of custom remaps )
-- Set to true if you have a Nerd Font installed and selected in the terminal -- Set to true if you have a Nerd Font installed and selected in the terminal
@ -172,6 +176,8 @@ require('lazy').setup({
name = 'rose-pine', name = 'rose-pine',
}, },
'mbbill/undotree',
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically 'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically