mirror of
https://github.com/He4eT/dotfiles.git
synced 2026-05-04 23:47:23 +00:00
nvim: add gitsign keymaps
This commit is contained in:
parent
3959069934
commit
5211bdc102
1 changed files with 6 additions and 3 deletions
|
|
@ -273,9 +273,12 @@ require('lazy').setup({
|
|||
},
|
||||
}
|
||||
|
||||
vim.keymap.set('n', '[g', ':Gitsigns prev_hunk<CR>', { desc = 'Go to previous git hunk' })
|
||||
vim.keymap.set('n', ']g', ':Gitsigns next_hunk<CR>', { desc = 'Go to next git hunk' })
|
||||
vim.keymap.set('n', '<leader>gb', ':Gitsigns blame_line<CR>', { desc = 'Show git blame' })
|
||||
vim.keymap.set('n', '[g', ':Gitsigns prev_hunk<CR>', { desc = 'Go to previous Git hunk' })
|
||||
vim.keymap.set('n', ']g', ':Gitsigns next_hunk<CR>', { desc = 'Go to next Git hunk' })
|
||||
|
||||
vim.keymap.set('n', '<leader>gb', ':Gitsigns blame_line<CR>', { desc = 'Show [G]it [B]lame' })
|
||||
vim.keymap.set('n', '<leader>gj', ':Gitsigns stage_hunk<CR>', { desc = 'Stage/unstage current hunk' })
|
||||
vim.keymap.set('n', '<leader>gk', ':Gitsigns preview_hunk<CR>', { desc = 'Show [G]it hun[k] preview' })
|
||||
end,
|
||||
},
|
||||
--[[ cfg_lazy_desolate: Not-so-colorful colorscheme ]]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue