[nvim] fix the "E488: Trailing characters" error when pressing K with coc.nvim

This commit is contained in:
Dmytro Meleshko 2020-09-25 08:48:29 +03:00
parent f5966e9c4b
commit 38238eb817

View file

@ -21,11 +21,12 @@ endif
return index(g:coc_filetypes, &filetype) >= 0 return index(g:coc_filetypes, &filetype) >= 0
endfunction endfunction
command -nargs=* CocKeywordprg call CocAction('doHover')
augroup vimrc-coc augroup vimrc-coc
autocmd! autocmd!
autocmd FileType * if IsCocEnabled() autocmd FileType * if IsCocEnabled()
\|let &l:formatexpr = "CocAction('formatSelected')" \|let &l:formatexpr = "CocAction('formatSelected')"
\|let &l:keywordprg = ":call CocAction('doHover')" \|let &l:keywordprg = ":CocKeywordprg"
\|endif \|endif
autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp') autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp')
augroup end augroup end