neovim vimscript confs

This commit is contained in:
siduck76
2021-03-09 12:59:50 +05:30
parent 362352b6f4
commit 70d9e12380
17 changed files with 6396 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
" GoTo code navigation.
nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gy <Plug>(coc-type-definition)
nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references)
" Use K to show documentation in preview window.
nnoremap <silent> K :call <SID>show_documentation()<CR>
function! s:show_documentation()
if (index(['vim','help'], &filetype) >= 0)
execute 'h '.expand('<cword>')
else
call CocAction('doHover')
endif
endfunction