Add some gitsigns keymaps
This commit is contained in:
parent
6acccd0d88
commit
672b50786b
4
init.vim
4
init.vim
|
@ -123,6 +123,10 @@ nnoremap <leader>hl <cmd>HopLine<cr>
|
||||||
nnoremap <leader>hw <cmd>HopWord<cr>
|
nnoremap <leader>hw <cmd>HopWord<cr>
|
||||||
nnoremap <leader>nt <cmd>NvimTreeToggle<cr>
|
nnoremap <leader>nt <cmd>NvimTreeToggle<cr>
|
||||||
nnoremap <leader>nf <cmd>NvimTreeFindFile<cr>
|
nnoremap <leader>nf <cmd>NvimTreeFindFile<cr>
|
||||||
|
nnoremap [g <cmd>Gitsigns prev_hunk<cr>
|
||||||
|
nnoremap ]g <cmd>Gitsigns next_hunk<cr>
|
||||||
|
nnoremap <leader>hp <cmd>Gitsigns preview_hunk<cr>
|
||||||
|
nnoremap <leader>hs <cmd>Gitsigns select_hunk<cr>
|
||||||
|
|
||||||
set splitbelow
|
set splitbelow
|
||||||
set splitright
|
set splitright
|
||||||
|
|
Loading…
Reference in a new issue