-
Notifications
You must be signed in to change notification settings - Fork 204
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
Validate only used providers? #1015
Comments
I don't see the use case for this. You should always provide valid configurations, and we should fail early, rather than only failing when you try to load the source. Open to your thoughts on this but closing for now |
When I disable a plugin that provides a source (for example, |
Ah it sounds like #973 would fix your case, since we'd only show that error once. Fyi with {
enabled = your_condition,
'your-plugin',
dependencies = {
{
'saghen/blink.cmp',
opts = { ... }
}
}
} |
Make sure you have done the following
blink.cmp
<C-k>
on https://cmp.saghen.dev)Bug Description
While sources can be dynamically provided, providers are always determined and validated, regardless of whether they’re used or not. This could be improved by accepting a function or merging all the sources and validating only the ones that are actually used.
blink.cmp/lua/blink/cmp/config/sources.lua
Lines 120 to 122 in a5402a1
Relevant configuration
neovim
versionNVIM v0.11.0-dev-1417+g487c48ec86-Homebrew Build type: Release LuaJIT 2.1.1734355927 Run "nvim -V1 -v" for more info
blink.cmp
version1cc3b1a
The text was updated successfully, but these errors were encountered: