From ac6deb4e957fd5cec450596c3221998e47fd6560 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Sun, 13 Nov 2022 14:29:15 +0000 Subject: [PATCH] nvim-cmp: refactor window options --- plugins/completion/nvim-cmp/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/completion/nvim-cmp/default.nix b/plugins/completion/nvim-cmp/default.nix index ff06ef69..c8351cf4 100644 --- a/plugins/completion/nvim-cmp/default.nix +++ b/plugins/completion/nvim-cmp/default.nix @@ -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"; }; })); };