-
Notifications
You must be signed in to change notification settings - Fork 151
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
Allow adding providers add-hoc after blink.cmp has been setup #475
Milestone
Comments
Yeah, makes sense, I'll add it as part of sources v2 |
Thanks! |
Saghen
added a commit
that referenced
this issue
Dec 10, 2024
Saghen
added a commit
that referenced
this issue
Dec 11, 2024
You should be able to use |
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature Description
Thanks for the plugin!
My config uses
mini.deps
and has support forsql
, usingvim-dadbod-completion
.However, I don't need it that often. As such, I only load
sql
plugins on a key command that is available when the filetype of the buffer issql
.Using nvim-cmp, I could add a new source dynamically:
I did not discover such an option in
blink.cmp
, but it is possible:The difference in loading between
nvim-cmp
andblink.cmp
is currently also observable in thesql
extra in LazyVim. Without theblink.cmp
extra,vim-dadbod-completion
is only added when the type of the buffer issql
. When theblink.cmp
extra is activated,vim-dadbod-completion
is always added whenblink.cmp
activates.Would you be willing to add a public function to
blink.cmp
that registers and activates a new provider? If so, I would gladly submit a PR. I think the code above would be of use in the implementation.Related:
The text was updated successfully, but these errors were encountered: