From a24545758aca48a8a592851a0d91236761c16c6c Mon Sep 17 00:00:00 2001 From: Redyf Date: Thu, 8 Feb 2024 17:38:25 -0300 Subject: [PATCH 1/2] fix: Oil window is not at the right width/height --- config/utils/oil.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/config/utils/oil.nix b/config/utils/oil.nix index 3af22fc8..ce3d0c9a 100644 --- a/config/utils/oil.nix +++ b/config/utils/oil.nix @@ -8,12 +8,8 @@ }; float = { padding = 2; - maxWidth.__raw = '' - math.ceil(vim.o.lines * 0.8 - 4) - ''; - maxHeight.__raw = '' - math.ceil(vim.o.columns * 0.8) - ''; + maxWidth = 0; # ''math.ceil(vim.o.lines * 0.8 - 4)''; + maxHeight = 0; # ''math.ceil(vim.o.columns * 0.8)''; border = "rounded"; # 'single' | 'double' | 'shadow' | 'curved' | ... other options supported by win open winOptions = { winblend = 0; From 80c143bc61753293c143a1370d1d5af9517cbb3b Mon Sep 17 00:00:00 2001 From: Redyf Date: Thu, 8 Feb 2024 17:38:41 -0300 Subject: [PATCH 2/2] feat: Add new option for neovim popups --- config/sets.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/sets.nix b/config/sets.nix index 6180d98b..e64ac12e 100644 --- a/config/sets.nix +++ b/config/sets.nix @@ -103,6 +103,9 @@ # We don't need to see things like INSERT anymore showmode = false; + # Maximum number of items to show in the popup menu (0 means "use available screen space") + pumheight = 0; + }; extraConfigLua = ''