nvim-cmp: refactor window options

This commit is contained in:
Pedro Alves
2022-11-13 14:29:15 +00:00
parent e2ffc64e68
commit ac6deb4e95
+3 -3
View File
@@ -299,8 +299,6 @@ in
border = with types; mkNullOrOption (either str (listOf str)) null;
winhighlight = mkNullOrOption types.str null;
zindex = mkNullOrOption types.int null;
col_offset = mkNullOrOption types.int null;
side_padding = mkNullOrOption types.int null;
in
mkOption {
default = null;
@@ -310,7 +308,9 @@ in
default = null;
type = types.nullOr (types.submodule ({ ... }: {
options = {
inherit border winhighlight zindex col_offset side_padding;
inherit border winhighlight zindex;
col_offset = mkNullOrOption types.int "Offsets the completion window relative to the cursor";
side_padding = mkNullOrOption types.int "The amount of padding to add on the completion window's sides";
};
}));
};