nix/prog/nvim: add mappings for coclist

This commit is contained in:
Dmitriy Pleshevskiy 2022-07-14 14:03:09 +03:00
parent 566a3e2c7a
commit 0850b4fd02
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

View file

@ -27,7 +27,7 @@ nmap <silent> ]c <Plug>(coc-diagnostic-next)
" Remap keys for gotos " Remap keys for gotos
nmap <silent> gd <Plug>(coc-definition) nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gt <Plug>(coc-type-definition) nmap <silent> gy <Plug>(coc-type-definition)
nmap <silent> gi <Plug>(coc-implementation) nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references) nmap <silent> gr <Plug>(coc-references)
@ -37,3 +37,8 @@ nmap <localleader>a <Plug>(coc-codeaction)
" Remap for rename current word " Remap for rename current word
nmap <localleader>n <Plug>(coc-rename) nmap <localleader>n <Plug>(coc-rename)
" Mappings for CocList
nnoremap <localleader>cl :CocList<CR>
nnoremap <localleader>cd :CocList diagnostics<CR>
nnoremap <localleader>cc :CocList commands<CR>