try switch to lsp-zero for nvim

This commit is contained in:
Nachuan Tang
2023-02-07 21:39:41 -05:00
parent 828f3e0c29
commit 9338b7a9dc
3 changed files with 127 additions and 66 deletions
+9 -9
View File
@@ -17,16 +17,16 @@ 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>
" Use K to show documentation in preview window.
nnoremap <silent> K :call <SID>show_documentation()<CR>
" function! s:show_documentation()
" if CocAction('hasProvider', 'hover')
" call CocActionAsync('doHover')
" else
" call feedkeys('K', 'in')
" endif
" endfunction
function! s:show_documentation()
if CocAction('hasProvider', 'hover')
call CocActionAsync('doHover')
else
call feedkeys('K', 'in')
endif
endfunction
" Symbol renaming.