Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Opt out of snippet expansion #6

Closed
xsh005 opened this issue Dec 15, 2023 · 4 comments
Closed

Opt out of snippet expansion #6

xsh005 opened this issue Dec 15, 2023 · 4 comments

Comments

@xsh005
Copy link

xsh005 commented Dec 15, 2023

Sometimes I do not want to use snippets when completing items, for instance

vim.tbl_map(my_func)

now say I have my_function as a complete item, in this case I do not want snippets to complete the args since I am passing the function itself as an argument, but even if I don't complete and manually type out my_function and press , the snippet still triggers, despite me not pressing <C-y>

@glepnir
Copy link
Member

glepnir commented Dec 15, 2023

CTRL_Y mean confrim use CTRL_E

@glepnir glepnir closed this as completed Dec 15, 2023
@xsh005
Copy link
Author

xsh005 commented Dec 15, 2023

Makes sense, but what I mean is whether there is a way to only expand snippets when I do a <C-y> (explicitly ask for completion)? Seems more ergonomic.

@glepnir
Copy link
Member

glepnir commented Dec 15, 2023

maybe need split cr and c-y.

@xsh005
Copy link
Author

xsh005 commented Dec 15, 2023

what do you mean?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants