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

Document better how to add extra capabilities and/or add a Nix-native way to do it #2680

Open
axelkar opened this issue Dec 15, 2024 · 3 comments

Comments

@axelkar
Copy link

axelkar commented Dec 15, 2024

How do I do it e.g. for cssls?

--Enable (broadcasting) snippet capability for completion
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = true

require'lspconfig'.cssls.setup {
  capabilities = capabilities,
}
@traxys
Copy link
Member

traxys commented Dec 15, 2024

You can use https://nix-community.github.io/nixvim/plugins/lsp/index.html#pluginslspcapabilities, though we should add more examples

@purepani
Copy link
Contributor

I also need to do this in order to set up blink.nvim fully. Are there any examples anywhere for how it looks?

@HeitorAugustoLN
Copy link
Member

HeitorAugustoLN commented Dec 23, 2024

I also need to do this in order to set up blink.nvim fully. Are there any examples anywhere for how it looks?

Probably could take a look at: elythh/nixvim@2201c11, But he didn't use plugins.lsp.capabilities

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

4 participants