completion on '.' possible? #218
Replies: 1 comment
-
ah finally found it. In case anyone's looking for the same thing, no InitializeResult needed (should have known bc that function doesn't return anything). Just need this param in the completion hook @LSP_SERVER.feature(lsp.TEXT_DOCUMENT_COMPLETION, lsp.CompletionOptions(trigger_characters=['.'])) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, I'm using this template for a project. I'm observing default completion behavior when I type a regular letter character, but I only want to trigger the lsp.TEXT_DOCUMENT_COMPLETION event on period (.) so I can provide a list of all attributes immediately.
I've tried returning capabilities from lsp_server.py:
but this doesn't seem to do anything. Is anyone familiar on how I could add this sort of behavior? Any advice/tips is appreciated
Beta Was this translation helpful? Give feedback.
All reactions