Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable diagnostics for one of the langservers #1163

Closed
miuirussia opened this issue May 13, 2021 · 1 comment
Closed

Disable diagnostics for one of the langservers #1163

miuirussia opened this issue May 13, 2021 · 1 comment
Labels

Comments

@miuirussia
Copy link

Is it possible to do this now or does it need a new feature?

@prabirshrestha
Copy link
Owner

You can define a custom function to get the capabilities.

vim-lsp/doc/vim-lsp.txt

Lines 760 to 771 in 296fb98

g:lsp_get_supported_capabilities *g:lsp_get_supported_capabilities*
Type: |List|
Default: `[function('lsp#default_get_supported_capabilities')]`
A |List| containing one element of type |Funcref|. This element is a
reference to the function that vim-lsp should use to obtain the supported
LSP capabilities. Changing this variable allows customizing which
capabilities vim-lsp sends to a language server.
Note: You can obtain the default supported capabilities of vim-lsp by
calling `lsp#omni#default_get_supported_capabilities` from within your
function.

If you are registering a server you can also pass capabilities. Here is a similar one with code samples that you could use. #1056

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants