Coc.nvim: disable floating windows / virtual text for coc-eslint

Created on 13 Mar 2019  路  2Comments  路  Source: neoclide/coc.nvim

Hi, is there a way to have eslint errors back in the status line instead of floating windows or virtual text? (tbh I'm not sure which one of those is used)

Anyway they are still buggy and sometimes the error gets "stuck" over my code. If I run :CocConfig the autocomplete suggests me "diagnostic.virtualText", but even if I set it to false I still get the error messages over the code. I haven't found anything else in docs or readme to disable them...

Thanks!

Most helpful comment

With

nmap <leader>1 :call coc#config('diagnostic.messageTarget', 'echo')<CR>
nmap <leader>2 :call coc#config('diagnostic.messageTarget', 'float')<CR>

in your ~/.config/nvim/init.vim
you can turn off floating diagnostics with <leader>1 and turn them on again with <leader>2.

For a lot of people <leader> is still the default \.

All 2 comments

Added "diagnostic.messageTarget"

With

nmap <leader>1 :call coc#config('diagnostic.messageTarget', 'echo')<CR>
nmap <leader>2 :call coc#config('diagnostic.messageTarget', 'float')<CR>

in your ~/.config/nvim/init.vim
you can turn off floating diagnostics with <leader>1 and turn them on again with <leader>2.

For a lot of people <leader> is still the default \.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MacGuffinLife picture MacGuffinLife  路  4Comments

npearson72 picture npearson72  路  3Comments

czepluch picture czepluch  路  3Comments

zhou13 picture zhou13  路  3Comments

aareman picture aareman  路  3Comments