[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
endfunction
command -nargs=* CocKeywordprg call CocAction('doHover')
augroup vimrc-coc
autocmd!
autocmd FileType * if IsCocEnabled()
\|let &l:formatexpr = "CocAction('formatSelected')"
\|let &l:keywordprg = ":call CocAction('doHover')"
\|let &l:keywordprg = ":CocKeywordprg"
\|endif
autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp')
augroup end