plugins/blink-cmp: update completion.list.selection type

Changed in latest release. Making type backwards compatible with
previous release.
This commit is contained in:
Austin Horstman 2025-01-07 21:19:29 -06:00
parent 2054094544
commit 2f9b103d2e
No known key found for this signature in database
2 changed files with 14 additions and 5 deletions

View file

@ -164,10 +164,16 @@ in
Maximum number of items to display.
'';
selection = defaultNullOpts.mkEnumFirstDefault [ "preselect" "manual" "auto_insert" ] ''
Controls if completion items will be selected automatically, and whether selection
automatically inserts.
'';
selection =
defaultNullOpts.mkNullableWithRaw (types.either types.str (types.attrsOf types.anything))
{
preselect = true;
auto_insert = true;
}
''
Controls if completion items will be selected automatically, and whether selection
automatically inserts.
'';
cycle = {
from_bottom = defaultNullOpts.mkBool true ''

View file

@ -42,7 +42,10 @@
};
list = {
max_items = 200;
selection = "preselect";
selection = {
preselect = true;
auto_insert = true;
};
cycle = {
from_bottom = true;
from_top = true;