From 1c6d5873dc38325c7555b266240ef1f16d6f46ce Mon Sep 17 00:00:00 2001 From: Tevin79 Date: Fri, 18 Apr 2025 06:46:47 +0200 Subject: [PATCH] feat: add undotree --- init.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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