Skip to content

Commit 01f011f

Browse files
committed
blink: do not deprio snippets by default
1 parent 033df51 commit 01f011f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

modules/plugins/completion/blink-cmp/blink-cmp.nix

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{lib, ...}: let
22
inherit (lib.options) mkEnableOption mkOption literalMD;
33
inherit (lib.types) listOf str either attrsOf submodule enum anything int nullOr;
4+
inherit (lib.generators) mkLuaInline;
45
inherit (lib.nvim.types) mkPluginSetupOption luaInline;
56
inherit (lib.nvim.binds) mkMappingOption;
67
inherit (lib.nvim.config) mkBool;
@@ -47,6 +48,19 @@ in {
4748
default = {};
4849
description = "Providers";
4950
};
51+
52+
transform_items = mkOption {
53+
type = nullOr luaInline;
54+
default = mkLuaInline "function(_, items) return items end";
55+
defaultText = ''
56+
Our default does nothing. If you want blink.cmp's default, which
57+
lowers the score for snippets, set this option to null.
58+
'';
59+
description = ''
60+
Function to use when transforming the items before they're returned
61+
for all providers.
62+
'';
63+
};
5064
};
5165

5266
completion = {

0 commit comments

Comments
 (0)