diff --git a/init.lua b/init.lua index 4fa2ffa6..381b6f95 100644 --- a/init.lua +++ b/init.lua @@ -190,8 +190,6 @@ 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` diff --git a/lua/kickstart/plugins/gitsigns.lua b/lua/kickstart/plugins/gitsigns.lua index 63de9ec2..1e8b808f 100644 --- a/lua/kickstart/plugins/gitsigns.lua +++ b/lua/kickstart/plugins/gitsigns.lua @@ -69,7 +69,8 @@ return { map('n', 'hS', gitsigns.stage_buffer, { desc = 'git [S]tage buffer' }) map('n', 'hu', gitsigns.undo_stage_hunk, { desc = 'git [u]ndo stage hunk' }) map('n', 'hR', gitsigns.reset_buffer, { desc = 'git [R]eset buffer' }) - map('n', 'hp', gitsigns.preview_hunk, { desc = 'git [p]review hunk' }) + map('n', 'hp', gitsigns.preview_hunk_inline, { desc = 'git [p]review hunk inline' }) + map('n', 'hP', gitsigns.preview_hunk, { desc = 'git [p]review hunk' }) map('n', 'hb', gitsigns.blame_line, { desc = 'git [b]lame line' }) map('n', 'hd', gitsigns.diffthis, { desc = 'git [d]iff against index' }) map('n', 'hD', function()