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

Disable snippets via capabilities? #3000

Open
telemachus opened this issue Dec 19, 2024 · 0 comments
Open

Disable snippets via capabilities? #3000

telemachus opened this issue Dec 19, 2024 · 0 comments

Comments

@telemachus
Copy link

How are you using the lua-language-server?

NeoVim

Which OS are you using?

MacOS

What is the issue affecting?

Completion

Expected Behaviour

According to the LSP spec, clients should be able to disable support for snippets by setting capabilities.textDocument.completion.completionItem.snippetSupport = false. However, lua-language-server seems to ignore this setting in favor of its own (non-standard?) settings (completion.callSnippet = "Disable" and completion.keywordSnippet = "Disable".

Actual Behaviour

Even if a user sets capabilities.textDocument.completion.completionItem.snippetSupport = false, snippets continue to be sent by the language server.

Reproduction steps

  1. Set capabilities.textDocument.completion.completionItem.snippetSupport = false
  2. Start typing i... or fo..
  3. Snippets will be shown for if and for.

Additional Notes

Since it seems standard to disable snippets using the capabilities setting, I'm hoping that lua-language-server can support that.

Log File

No response

@telemachus telemachus changed the title Disable snippets via capabilities.textDocument.completion.completionItem.snippetSupport = false? Disable snippets via capabilities? Dec 20, 2024
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