0

I'm using Coc.vim and I've created an issue on their GitHub, but I'm not sure about whether this can be done by modifying the line I'm using:

autocmd CursorHold * silent call CocActionAsync('doHover')

as you can see I already added the slient above but it still show the error:

Then I will have to press enter since there are too many error message, which is annoying.

1
  • 1
    Read the help for :silent again. The answer is in the first few sentences. – B Layer Apr 14 at 3:38
0

The problem can be solved by these two lines:

let blacklist = ['vim', 'help']
autocmd CursorHold * if (index(blacklist, &ft) < 0 || !coc#rpc#ready())
    \ | silent! call CocActionAsync('doHover')
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.