Skip to content

Commit 5bf8285

Browse files
committed
added undotree
1 parent bfa7dac commit 5bf8285

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

init.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
166166
-- CUSTOM KEYMAPS MOVE TO SEPERATE FILE PLEASE!!!!!
167167
vim.keymap.set('i', 'kj', '<Esc>')
168168
vim.keymap.set('n', '-', '<Cmd>Oil<CR>', { desc = 'Open Parent Directory' })
169+
vim.keymap.set('n', '<leader>u', vim.cmd.UndotreeToggle)
169170

170171
-- Diagnostic keymaps
171172
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
@@ -857,7 +858,7 @@ require('lazy').setup({
857858
-- Load the colorscheme here.
858859
-- Like many other themes, this one has different styles, and you could load
859860
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
860-
vim.cmd.colorscheme 'rose-pine'
861+
vim.cmd.colorscheme 'rose-pine-moon'
861862

862863
-- You can configure highlights by doing something like:
863864
vim.cmd.hi 'Comment gui=none'

lua/custom/plugins/init.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,7 @@ return {
3434
{ '<c-\\>', '<cmd><C-U>TmuxNavigatePrevious<cr>' },
3535
},
3636
},
37+
{
38+
'mbbill/undotree',
39+
},
3740
}

0 commit comments

Comments
 (0)