mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-17 17:24:21 +02:00
nvim-cmp: add extra window options
This commit is contained in:
parent
bd5c46202e
commit
7992526721
1 changed files with 10 additions and 2 deletions
|
@ -299,6 +299,8 @@ 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;
|
||||||
|
colOffset = mkNullOrOption types.int null;
|
||||||
|
sidePadding = mkNullOrOption types.int null;
|
||||||
in
|
in
|
||||||
mkOption {
|
mkOption {
|
||||||
default = null;
|
default = null;
|
||||||
|
@ -308,7 +310,7 @@ in
|
||||||
default = null;
|
default = null;
|
||||||
type = types.nullOr (types.submodule ({ ... }: {
|
type = types.nullOr (types.submodule ({ ... }: {
|
||||||
options = {
|
options = {
|
||||||
inherit border winhighlight zindex;
|
inherit border winhighlight zindex colOffset sidePadding;
|
||||||
};
|
};
|
||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
|
@ -387,7 +389,13 @@ in
|
||||||
|
|
||||||
sources = cfg.sources;
|
sources = cfg.sources;
|
||||||
view = cfg.view;
|
view = cfg.view;
|
||||||
window = cfg.window;
|
window = if (isNull cfg.window) then null else {
|
||||||
|
border = cfg.window.border;
|
||||||
|
winhighlight = cfg.window.winhighlight;
|
||||||
|
zindex = cfg.window.zindex;
|
||||||
|
col_offset = cfg.window.colOffset;
|
||||||
|
side_padding = cfg.window.sidePadding;
|
||||||
|
};
|
||||||
experimental = cfg.experimental;
|
experimental = cfg.experimental;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue