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

Server capabilities not updating using LSP configuration #679

Open
gwuen opened this issue Nov 17, 2024 · 0 comments
Open

Server capabilities not updating using LSP configuration #679

gwuen opened this issue Nov 17, 2024 · 0 comments

Comments

@gwuen
Copy link

gwuen commented Nov 17, 2024

As described in the README, I'm trying to update the server's capabilities using the LSP configuration in my client. That is, as far as I understand, a table sent to the server via a workspace/didChangeConfiguration notification after initialization:

r = {
  lsp = {
    server_capabilities = {
      completionProvider = false,
      completionItemResolve = false,
    },
    -- other settings
  },
},

The capabilities just won't update, while other settings, for example setting a custom log_file, are correctly applied. Setting the capabilities in .Rprofile also works as expected, but this is not the preferred way for me.

I'm using the native LSP client in Neovim 0.10.2 with the latest R languageserver release v0.3.16. Even though I don't see anything related to the capabilities, here is a debug log of starting and stopping the server once on one file.

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

No branches or pull requests

1 participant