plugins/blink-cmp: support raw lua for settings.sources.providers.enabled

plugins/blink-cmp: conciseness

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

plugins/blink-cmp: add test for providers.enabled
This commit is contained in:
Violet Wood 2025-01-31 20:25:13 +00:00 committed by nix-infra-bot
parent a2f01876f7
commit 0e92aaf3f2
2 changed files with 8 additions and 1 deletions

View file

@ -25,7 +25,7 @@ types.submodule {
};
enabled = mkNullOrOption' {
type = types.bool;
type = with types; maybeRaw bool;
description = ''
Whether or not to enable the provider.
'';

View file

@ -379,6 +379,13 @@
providers = {
buffer.score_offset = -7;
lsp.fallbacks = [ ];
cmdline.enabled = {
__raw = ''
function()
return true
end
'';
};
};
cmdline = [ ];
};