-
Beta Was this translation helpful? Give feedback.
Answered by
soifou
Jun 22, 2025
Replies: 1 comment 1 reply
-
Hey! The documentation isn't super clear about this, so we’ll probably add a note. You want to trigger the completion menu with special characters. Some sources have default "trigger" characters, while others (like luasnip) don't. But what's cool is that you can customize it for each source. Here’s how you can do it for your use case: sources = {
default = { ... },
-- add this
providers = {
snippets = {
override = {
get_trigger_characters = function(_) return {';', '.'} end,
},
},
},
}, |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
odlove
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey! The documentation isn't super clear about this, so we’ll probably add a note.
You want to trigger the completion menu with special characters. Some sources have default "trigger" characters, while others (like luasnip) don't. But what's cool is that you can customize it for each source.
Here’s how you can do it for your use case: