What does resolved_capabilities mean for null-ls ? #523
-
I've seen this snippet of code from you, and I'm wondering why this isn't the default behavior? It makes a lot more sense to me. I mean, what's the point of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There's 2 things going on:
The user's request in the linked issue was based on a special case where they wanted to register a source that's enabled for all filetypes but disable it under specific conditions. I recommended using The LSP specification defines a way for servers to send capabilities dynamically, but it's not (yet) supported by Neovim. |
Beta Was this translation helpful? Give feedback.
There's 2 things going on:
client.resolved_capabilities
.client.supports_method()
. Since at this point we know what null-ls can and can't do based on registered sources, we can respond accurately.The user's request in the linked issue was based on a special case where they wanted to register a source that's enabled for all filetypes but disable it under specific conditions. I recommended using
cl…