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. Maximum number of items to display.
''; '';
selection = defaultNullOpts.mkEnumFirstDefault [ "preselect" "manual" "auto_insert" ] '' selection =
Controls if completion items will be selected automatically, and whether selection defaultNullOpts.mkNullableWithRaw (types.either types.str (types.attrsOf types.anything))
automatically inserts. {
''; preselect = true;
auto_insert = true;
}
''
Controls if completion items will be selected automatically, and whether selection
automatically inserts.
'';
cycle = { cycle = {
from_bottom = defaultNullOpts.mkBool true '' from_bottom = defaultNullOpts.mkBool true ''

View file

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