File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
modules/plugins/completion/blink-cmp Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 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 ;
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 = {
You can’t perform that action at this time.
0 commit comments