Coc.nvim: Show the diagnostic message when the cursor is at related line rather than at a position

Created on 3 Apr 2019  路  2Comments  路  Source: neoclide/coc.nvim

Is your feature request related to a problem? Please describe.
Currently coc.nvim only shows the diagnostic message when you place the cursor at the correct location. For example, you need to move the cursor under M in order to get the diagnostic message
image

For ccls, sometimes this is impossible because the error is locate at the end of the line (line 5 only has 18 columns, maybe that is a bug of ccls but anyway...).
image

Describe the solution you'd like
I hope that I can get the diagnose after I move my cursor to the corresponding line. The column does not need to be in the column of the error.

Describe alternatives you've considered
I tried to search through the help file but I cannot find related stuff.

Most helpful comment

coc-settings.json

  "diagnostic.checkCurrentLine": true,

All 2 comments

coc-settings.json

  "diagnostic.checkCurrentLine": true,

I enabled this as well and prefer it to the default. However, now I have another minor problem. The TS warning/error messages themselves do not mention column number, and for some of the more cryptic ones I sometimes start investigating the wrong symptom. Is it possible to still show all line warnings regardless of cursor position while underlining the atoms responsible (like the default without this setting)?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ctaylo21 picture ctaylo21  路  4Comments

svenstaro picture svenstaro  路  4Comments

skylite21 picture skylite21  路  3Comments

iago-lito picture iago-lito  路  3Comments

lanox picture lanox  路  3Comments