Multi-character trigger
I'm trying to have completions using multi-character trigger , for example ::. However, it does not seem to work (coc.nvim). Is there a way to accomplish this?
I haven't setup completion before, so I may be wrong, but it seems like multi-character triggering isn't supported in the official LSP standard?
But maybe it's possible to manually send a completionList from your language server when it detects :: from a textDocument/didChange message?
I haven't setup completion before, so I may be wrong, but it seems like multi-character triggering isn't supported in the official LSP standard?
But maybe it's possible to manually send a
completionListfrom your language server when it detects::from atextDocument/didChangemessage?
I will try, thank you
@tombh
Right after you suggested this I indeed managed to code up a solution with didChange. I had posted a stack overflow question about this around that time. I just tried using it on new OpenAi GPT and this is the response it gave:
https://stackoverflow.com/questions/74154088/how-to-implement-a-multi-character-auto-complete-trigger-in-language-server

Incredible stuff lol
What????
I feel like this should be a day to remember in my life. I've of course seen the progress of AI for many years now, but this is the first time it's actually organically and constructively crossed my path.
Incredible stuff indeed 😲🤓