diff --git a/init.lua b/init.lua index 4004d730..4c85dedb 100644 --- a/init.lua +++ b/init.lua @@ -190,6 +190,8 @@ vim.keymap.set('n', '', '', { desc = 'Move focus to the right win vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' }) vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) +vim.keymap.set('n', 'gp', ':Gitsigns preview_hunk_inline', {}) + -- [[ Basic Autocommands ]] -- See `:help lua-guide-autocommands` @@ -386,6 +388,7 @@ require('lazy').setup({ vim.keymap.set('n', 'sr', builtin.resume, { desc = '[S]earch [R]esume' }) vim.keymap.set('n', 's.', builtin.oldfiles, { desc = '[S]earch Recent Files ("." for repeat)' }) vim.keymap.set('n', '', builtin.buffers, { desc = '[ ] Find existing buffers' }) + vim.keymap.set('n', 'sv', builtin.git_stash, { desc = '[S]earch git status' }) -- Slightly advanced example of overriding default behavior and theme vim.keymap.set('n', '/', function() @@ -772,7 +775,7 @@ require('lazy').setup({ -- Load the colorscheme here. -- Like many other themes, this one has different styles, and you could load -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. - vim.cmd.colorscheme 'tokyonight-moon' + vim.cmd.colorscheme 'tokyonight-storm' -- You can configure highlights by doing something like: vim.cmd.hi 'Comment gui=none'