vim: Add coc mappings
This commit is contained in:
parent
50700ad9fb
commit
d47926061f
|
@ -57,7 +57,14 @@ let g:NERDTreeWinPos = "right"
|
|||
nnoremap <leader>ne :NERDTreeToggle<CR>
|
||||
|
||||
" Symbol renaming.
|
||||
nmap <leader>rn <Plug>(coc-rename)
|
||||
nmap <Leader>a <Plug>(coc-codeaction)
|
||||
nmap <Leader>gd <Plug>(coc-definition)
|
||||
nmap <Leader>gr <Plug>(coc-references)
|
||||
nmap <Leader>gi <Plug>(coc-implementation)
|
||||
nmap <Leader>gt <Plug>(coc-type-definition)
|
||||
nmap <Leader>sr <Plug>(coc-rename)
|
||||
nmap <Leader>rf <Plug>(coc-refactor)
|
||||
nnoremap <silent> K :call <SID>show_documentation()<CR>
|
||||
|
||||
autocmd FileType gitcommit highlight ColorColumn ctermbg=8
|
||||
autocmd FileType gitcommit setlocal colorcolumn=50,72
|
||||
|
|
Loading…
Reference in a new issue