mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-16 20:24:31 +02:00
plugins/nvim-cmp: fix window.completion bug (#385)
This commit is contained in:
parent
131c94f3bc
commit
fe581914ba
1 changed files with 28 additions and 32 deletions
|
@ -607,38 +607,34 @@ in {
|
||||||
|
|
||||||
inherit (cfg) view;
|
inherit (cfg) view;
|
||||||
window = helpers.ifNonNull' cfg.window {
|
window = helpers.ifNonNull' cfg.window {
|
||||||
completion = helpers.ifNonNull' cfg.window.completion {
|
completion = with cfg.window.completion;
|
||||||
inherit
|
helpers.ifNonNull' cfg.window.completion {
|
||||||
(cfg.window.completion)
|
inherit
|
||||||
border
|
border
|
||||||
winhighlight
|
winhighlight
|
||||||
zindex
|
zindex
|
||||||
scrolloff
|
scrolloff
|
||||||
scrollbar
|
scrollbar
|
||||||
;
|
;
|
||||||
col_offset = cfg.window.completion.colOffset;
|
col_offset = colOffset;
|
||||||
side_padding = cfg.window.completion.sidePadding;
|
side_padding = sidePadding;
|
||||||
};
|
};
|
||||||
documentation = helpers.ifNonNull' cfg.window.completion {
|
documentation = with cfg.window.documentation;
|
||||||
inherit
|
helpers.ifNonNull' cfg.window.documentation {
|
||||||
(cfg.window.completion)
|
inherit
|
||||||
border
|
border
|
||||||
winhighlight
|
winhighlight
|
||||||
zindex
|
zindex
|
||||||
;
|
;
|
||||||
max_width = let
|
max_width =
|
||||||
inherit (cfg.window.documentation) maxWidth;
|
if isInt maxWidth
|
||||||
in
|
then maxWidth
|
||||||
if isInt maxWidth
|
else helpers.ifNonNull' maxWidth (helpers.mkRaw maxWidth);
|
||||||
then maxWidth
|
max_height =
|
||||||
else helpers.ifNonNull' maxWidth (helpers.mkRaw maxWidth);
|
if isInt maxHeight
|
||||||
max_height = let
|
then maxHeight
|
||||||
inherit (cfg.window.documentation) maxHeight;
|
else helpers.ifNonNull' maxHeight (helpers.mkRaw maxHeight);
|
||||||
in
|
};
|
||||||
if isInt maxHeight
|
|
||||||
then maxHeight
|
|
||||||
else helpers.ifNonNull' maxHeight (helpers.mkRaw maxHeight);
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
inherit (cfg) experimental;
|
inherit (cfg) experimental;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue