Update gitsigns keymaps
This commit is contained in:
parent
5fdfbf5df5
commit
6f401e72ab
|
@ -8,7 +8,8 @@ require('gitsigns').setup{
|
|||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '[g', '<cmd>Gitsigns prev_hunk<CR>', {})
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', ']g', '<cmd>Gitsigns next_hunk<CR>', {})
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>hp', '<cmd>Gitsigns preview_hunk<CR>', {})
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>hs', '<cmd>Gitsigns select_hunk<CR>', {})
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>hs', '<cmd>Gitsigns stage_hunk<CR>', {})
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>bs', '<cmd>Gitsigns stage_buffer<CR>', {})
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>bl', '<cmd>Gitsigns blame_line<CR>', {})
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>bt', '<cmd>Gitsigns toggle_current_line_blame<CR>', {})
|
||||
end,
|
||||
|
|
|
@ -40,7 +40,3 @@ nmap('<leader>hw', '<cmd>HopWord<cr>')
|
|||
-- Nvim-tree
|
||||
nmap('<leader>nt', '<cmd>NvimTreeToggle<cr>')
|
||||
nmap('<leader>nf', '<cmd>NvimTreeFindFile<cr>')
|
||||
|
||||
-- Gitsigns
|
||||
nmap('[g', '<cmd>Gitsigns prev_hunk<cr>')
|
||||
nmap(']g', '<cmd>Gitsigns next_hunk<cr>')
|
||||
|
|
Loading…
Reference in a new issue