You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What language server (If the problem is related to a specific language server): clangd
Is the problem isolated to a particular language server: clangd
Operating system/version: Ubuntu 18.04
How to reproduce the problem from neovim startup
Install clangd and generate JSON compilation database.
Actual behaviour
nvim reports linter warnings
Expected behaviour
A way to turn linter errors/warnings off. It is important if you already have a lining plugin like dense-analysis/ale or just needs to disable linting for specific language.
Minimal init.vim or init.lua and code sample
lua << EOF
require'lspconfig'.clangd.setup{}
EOF
The text was updated successfully, but these errors were encountered:
I assume you mean diagnostics off. You can override the diagnostic handler using the handlers key in setup.
lua<<EOFrequire'lspconfig'.clangd.setup{
handlers= {['textDocument/publishDiagnostics'] =function(...) end }
}
EOF
For future reference, none of the functionality you are inquiring about is in this plugin, it's all implemented in neovim core. Typically usage questions like this belong on our discourse https://neovim.discourse.group/
nvim --version
: v0.5.0-devHow to reproduce the problem from neovim startup
Install
clangd
and generate JSON compilation database.Actual behaviour
nvim
reports linter warningsExpected behaviour
A way to turn linter errors/warnings off. It is important if you already have a lining plugin like
dense-analysis/ale
or just needs to disable linting for specific language.Minimal init.vim or init.lua and code sample
The text was updated successfully, but these errors were encountered: