LanguageClient-neovim
LanguageClient-neovim copied to clipboard
Feature request: g:LanguageClient_diagnosticsEnable only for a specific language
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,
}
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.
but this is a global so if you switch between different filetypes, il will change the value.
Ah yeah you are right, I overlooked that bit. I'll re-open then. 😄