mrshmllow / document-color.nvim

🌈 LSP-based colorizer for neovim
MIT License
159 stars 3 forks source link

Clarify what dynamicRegistration is for in the docs. #5

Closed thekaganugur closed 2 years ago

thekaganugur commented 2 years ago

Hi, I just saw that dynamicRegistration was added to the recommended setup.

capabilities.textDocument.colorProvider = {
  dynamicRegistration = true
}

But couldn't find why this is needed (not sure if it's needed though). Since I'm already using the plunging without this snippet.

Thanks.

mrshmllow commented 2 years ago

it's in the docs https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocumentClientCapabilities. simply passing true will break servers (like rust https://github.com/rust-lang/rust-analyzer/issues/13068)