You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, sorry to bother you. I'm currently learning how to use LuaSnip, and I encountered a behavior that I don't fully understand.
What I want to achieve
I’m not sure if the issue is due to autosnippet behavior, my config, or interference from the completion engine.
Question
How can I trigger the snippet automatically?
Any guidance or clarification would be appreciated. Sorry if this is a basic question — I’ve read the docs but just want to confirm whether my understanding is correct.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, sorry to bother you. I'm currently learning how to use LuaSnip, and I encountered a behavior that I don't fully understand.
What I want to achieve
I want to define a simple snippet like this:
I expected that once I type ;a, the snippet would automatically expand into \alpha without needing to press .
What actually happens
Interestingly, if I remove snippetType = "autosnippet" and define it as a normal snippet, then pressing works fine.
My config (key points)
I did enable autosnippets:
My keymaps are standard:
I’m not sure if the issue is due to autosnippet behavior, my config, or interference from the completion engine.
Question
How can I trigger the snippet automatically?
Any guidance or clarification would be appreciated. Sorry if this is a basic question — I’ve read the docs but just want to confirm whether my understanding is correct.
Thanks a lot for LuaSnip — it’s an amazing tool!
Beta Was this translation helpful? Give feedback.
All reactions