mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim] fix the "E488: Trailing characters" error when pressing K with coc.nvim
This commit is contained in:
parent
f5966e9c4b
commit
38238eb817
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue