vim: Add coc mappings

This commit is contained in:
Oliver Davies 2021-06-03 12:00:00 +01:00
parent 50700ad9fb
commit d47926061f

View file

@ -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