josa42 / coc-sh

SH language server extension using bash-language-server for coc.nvim.
MIT License
205 stars 4 forks source link

Can it add interface to disable diagnostics function ? #45

Closed pittcat closed 4 years ago

pittcat commented 4 years ago

My neovim settings about diagnostic are making ale.vim and coc.nvim cooperation.

 "diagnostic.enable": true,
 "coc.preferences.diagnostic.displayByAle":true,

For diagnosis of bash language,i think shellcheck is better choice.I plan to disable diagnosis function in coc-settings.json and choose shellcheck in config of ale.vim . Coc-clangd supports the function to disable diagnostics function . https://github.com/clangd/coc-clangd/issues/30 https://github.com/bash-lsp/bash-language-server/issues/13

josa42 commented 4 years ago

You can now disable the diagnostics by setting coc.highlightParsingErrors to false in you coc-settings.json (restarting coc is required).

pittcat commented 4 years ago

Thank you.

pittcat commented 4 years ago

I have update coc-sh to latest version.It seems like that the option to disable diagnostics should be "sh.highlightParsingErrors": false . Maybe the trick should be written in readme.md. Thank you for your continuous work for coc-sh .