-
Notifications
You must be signed in to change notification settings - Fork 34
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
Attempt at displaying regTrig snippets in completion menu #46
base: master
Are you sure you want to change the base?
Conversation
Right: Concerning the issues, I'm not sure what's going wrong, afaict it should all work :/ One more idea to make this option more general: add |
These show what the experience was like with all regex snippets before. I totally don't mind, I just want to confirm. Also, the issue seems to have gone away after reintroducing the cache, but I'll keep testing to make sure. |
Okay for postfix-style snippets where some part (most) of the trigger was probably already typed, the current solution doesn't make much sense, that's true. But there are other snippet where it works ok I think, for example Just noticed, I don't think I mentioned the general idea with these 😅: one can fill out the variable parts( |
Ohh, very interesting! I had no idea! I probably should've figured that out myself haha 😅 |
Naaaah, perhaps this should be put in the readme, you're not the first to be confused by this :D What might work is a hybrid of the two approaches: if the pattern matches, just expand, if it doesn't, expand the helper. |
I made this because of an issue
I opened on the luasnip repo, but realized that this is something to experiment
with over here.
Sometimes the regTrig snippets dissapear entirely from the list of snippets
I'd love some critique and insight into what I'm doing wrong here, since it
feels fairly flimsy as it is now.
Thanks!