Disable Diagnostics? #13
-
Is there a way I can disable diagnostics? Background: First time using lsp. Project is javascript/React. Despite having a Thanks a bunch |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
To disable all diagnostic you can use this command: :lua vim.diagnostic.disable() The way you pass options to a server with local lsp = require('lsp-zero')
lsp.preset('recommended')
lsp.configure('tsserver', {
flags = {
debounce_text_changes = 150,
},
})
lsp.setup() The first argument to
But I get the feeling that the configuration you want to tweak should be done in |
Beta Was this translation helpful? Give feedback.
To disable all diagnostic you can use this command:
The way you pass options to a server with
lsp-zero
is using the.configure()
function. Example.The first argument to
.configure()
is the name of the server and the second are the options. Sincelsp-zero
useslspconfig
to configure the servers the details about available options can be found in:help lspconfig-setup
.But I get …