lite-xl / lite-xl-lsp

LSP Plugin for Lite XL editor
MIT License
160 stars 21 forks source link

Allow specifying custom `capabilities` that will be sent on `initialize` #112

Closed Guldoman closed 7 months ago

Guldoman commented 7 months ago

This is useful for plugins that want to for example implement server-specific capabilities.

This can also be used with LSP servers that don't behave as expected when some capabilities are enabled. For example https://github.com/lite-xl/lite-xl/discussions/485#discussioncomment-8448386 can now be worked around by setting

custom_capabilities = {
  workspace = {
    configuration = false
  }
}