feat: add undotree
This commit is contained in:
parent
714f077cb0
commit
1c6d5873dc
8
init.lua
8
init.lua
|
@ -5,7 +5,7 @@ vim.g.mapleader = ' '
|
|||
vim.g.maplocalleader = ' '
|
||||
|
||||
-- ( Custom remaps
|
||||
vim.keymap.set('n', '!', '_') -- For macos only
|
||||
-- vim.keymap.set('n', '!', '_') -- For macos only
|
||||
|
||||
-- Center the view when moving
|
||||
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, 'NormalFloat', { bg = 'none' })
|
||||
|
||||
-- Undotree
|
||||
vim.keymap.set('n', '<F5>', vim.cmd.UndotreeToggle)
|
||||
|
||||
-- End of custom remaps )
|
||||
|
||||
-- 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',
|
||||
},
|
||||
|
||||
'mbbill/undotree',
|
||||
|
||||
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
|
||||
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
|
||||
|
||||
|
|
Loading…
Reference in New Issue