Closed gbrlsnchs closed 4 years ago
It should be fixed, please check!
I have tested it, now it's only activated when calling on_attach
, which is the correct behavior, however now I'm not seeing the words in the line highlighted. Do I need to configure something else now to enable highlighting all words involved in the diagnostic?
Hmm I don't think the words of diagnostic will be highlighted. Will it be highlighted in a default behavior of neovim?
Sorry, by highlighted I meant to be underlined. After the change, words won't get underlined anymore. Everything else is still working, though.
Hmm that's weird cause it works fine on my side. Can you reproduce this using the minimal init.vim?
I used a minimal init.vim
and it's working properly. Must be something in my config. Thanks!
If anyone is having the same problem, I found the issue: calling require'nvim_lsp'.<any_lsp>.setup{on_attach=require'diagnostic'.on_attach}
BEFORE syntax enable
makes the underlining to be overridden.
Hello! Thanks for this nice plugin.
Currently, I have this small wrapper:
And in my
init.vim
:As you can see, I have commented the calls to
diagnostic.on_attach
, and am only importing the plugin itself viavim-plug
. I was testing it by toggling comments in that call. However, even with it disabled, it still works. Theon_attach
call has no effect whatsover. It would be nice if the plugin only got activated when I call theon_attach
function.