Added goto code navigation

This commit is contained in:
Marcin Woźniak 2021-10-24 15:48:14 +02:00
parent f3fc624863
commit 6ad3ba0679
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -109,6 +109,16 @@ inoremap <silent><expr> <TAB>
\ coc#refresh()
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
" GoTo code navigation.
nmap <leader>gd <Plug>(coc-definition)
nmap <leader>gy <Plug>(coc-type-definition)
nmap <leader>gi <Plug>(coc-implementation)
nmap <leader>gr <Plug>(coc-references)
nmap <leader>rr <Plug>(coc-rename)
nmap <silent> <leader>gp <Plug>(coc-diagnostic-prev)
nmap <silent> <leader>gn <Plug>(coc-diagnostic-next)
nnoremap <leader>cr :CocRestart
" Status-line
set statusline=
set statusline+=%#IncSearch#