Skip to content
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

Create option to turn off popups #1153

Open
kohloth opened this issue Mar 31, 2024 · 1 comment
Open

Create option to turn off popups #1153

kohloth opened this issue Mar 31, 2024 · 1 comment

Comments

@kohloth
Copy link

kohloth commented Mar 31, 2024

With luasnip installed, if I open up my editor with an empty file, and simply type the letter "d", I see two large popups appear. One with a list of about 15 snippet suggestions, and one that shows the contents of the first snippet in that list.

Part of the reason I'm moving back to vim from VSCode is that I personally find it quite a large hinderance when things are popping up all over the place, obscuring parts of the code, sealing focus, and so on.

Could an option be added to LuaSnip to disable these popups? And so that it can just be used to define and invoke snippets when the invocating key combination is pressed?

@bew
Copy link
Contributor

bew commented Mar 31, 2024

LuaSnip does not open any popups, it is only a snippets engine.

Completions are handled by another plugin which will decide what completions are available and when.
(usually nvim-cmp nowadays)
Then another plugin is involved to add LuaSnip's snippets as a source of items to the completion engine.

It is the completion engine that is responsible for deciding when to ask sources for completion items, and displaying them in 'popups' if any.
So you should configure that, not LuaSnip

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

No branches or pull requests

2 participants