Skip to content

Commit

Permalink
blink: do not deprio snippets by default
Browse files Browse the repository at this point in the history
  • Loading branch information
horriblename committed Jan 11, 2025
1 parent 033df51 commit 01f011f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions modules/plugins/completion/blink-cmp/blink-cmp.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{lib, ...}: let
inherit (lib.options) mkEnableOption mkOption literalMD;
inherit (lib.types) listOf str either attrsOf submodule enum anything int nullOr;
inherit (lib.generators) mkLuaInline;
inherit (lib.nvim.types) mkPluginSetupOption luaInline;
inherit (lib.nvim.binds) mkMappingOption;
inherit (lib.nvim.config) mkBool;
Expand Down Expand Up @@ -47,6 +48,19 @@ in {
default = {};
description = "Providers";
};

transform_items = mkOption {
type = nullOr luaInline;
default = mkLuaInline "function(_, items) return items end";
defaultText = ''
Our default does nothing. If you want blink.cmp's default, which
lowers the score for snippets, set this option to null.
'';
description = ''
Function to use when transforming the items before they're returned
for all providers.
'';
};
};

completion = {
Expand Down

0 comments on commit 01f011f

Please sign in to comment.