diff --git a/init.lua b/init.lua index 5689e75a..6528fcfb 100644 --- a/init.lua +++ b/init.lua @@ -157,6 +157,12 @@ vim.opt.scrolloff = 10 -- [[ Basic Keymaps ]] -- See `:help vim.keymap.set()` +-- Center view after jumping up and down +vim.keymap.set('n', '', 'zz') +vim.keymap.set('n', '', 'zz') +vim.keymap.set('n', 'n', 'nzzzv') +vim.keymap.set('n', 'N', 'Nzzzv') + -- Set highlight on search, but clear on pressing in normal mode vim.opt.hlsearch = true vim.keymap.set('n', '', 'nohlsearch') @@ -292,6 +298,10 @@ require('lazy').setup({ ['r'] = { name = '[R]ename', _ = 'which_key_ignore' }, ['s'] = { name = '[S]earch', _ = 'which_key_ignore' }, ['w'] = { name = '[W]orkspace', _ = 'which_key_ignore' }, + ['g'] = { name = '[G]it', _ = 'which_key_ignore' }, + ['gc'] = { name = '[G]it: [C]ommit...', _ = 'which_key_ignore' }, + ['t'] = { name = '[T]ests', _ = 'which_key_ignore' }, + ['td'] = { name = '[T]ests: [D]ebug...', _ = 'which_key_ignore' }, } end, }, diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index 50395ff2..4b953a7e 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -216,4 +216,7 @@ return { end, dependencies = { { 'nvim-tree/nvim-web-devicons' } }, }, + { + 'ThePrimeagen/vim-be-good', + }, }