LanguageClient-neovim icon indicating copy to clipboard operation
LanguageClient-neovim copied to clipboard

Feature request: g:LanguageClient_diagnosticsEnable only for a specific language

Open shun095 opened this issue 7 years ago • 3 comments

I want to disable LanguageClient's linter while using some cusom linter with ALE for a specific language. (For example I want to use flake8 over ALE while using pyls over LanguageClient without duplication of warnings) But for another language, I want to use LanguageClient's linter.

I found there is "g:LanguageClient_diagnosticsEnable" option, but there seems to be no option to disable linter only for specific language.

Could you add some option to disable only for specific language?
For example:

let g:LanguageClient_diagnosticsEnable = {
 \ 'cpp': 1,
 \ 'python': 0,
}

shun095 avatar Oct 31 '18 10:10 shun095

I'm closing this as this can already be done by using setting let g:LanguageClient_diagnosticsEnable = 0 under your ~/.config/nvim/ftplugin/${language}.vim or ~/.vim/ftplugin/${language}.vim.

martskins avatar Oct 28 '20 20:10 martskins

but this is a global so if you switch between different filetypes, il will change the value.

teto avatar Oct 28 '20 20:10 teto

Ah yeah you are right, I overlooked that bit. I'll re-open then. 😄

martskins avatar Oct 28 '20 20:10 martskins