diff --git a/init.lua b/init.lua index 50fa3775..c8d36d1f 100644 --- a/init.lua +++ b/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', '', 'zz') @@ -16,6 +16,10 @@ vim.keymap.set('n', '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', '', 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