nvim-cmp: refactor window options

This commit is contained in:
Pedro Alves 2022-11-13 14:29:15 +00:00
parent e2ffc64e68
commit ac6deb4e95

View file

@ -299,8 +299,6 @@ in
border = with types; mkNullOrOption (either str (listOf str)) null; border = with types; mkNullOrOption (either str (listOf str)) null;
winhighlight = mkNullOrOption types.str null; winhighlight = mkNullOrOption types.str null;
zindex = mkNullOrOption types.int null; zindex = mkNullOrOption types.int null;
col_offset = mkNullOrOption types.int null;
side_padding = mkNullOrOption types.int null;
in in
mkOption { mkOption {
default = null; default = null;
@ -310,7 +308,9 @@ in
default = null; default = null;
type = types.nullOr (types.submodule ({ ... }: { type = types.nullOr (types.submodule ({ ... }: {
options = { 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";
}; };
})); }));
}; };