From 151500759722c12fb6a3931c5243d68f01af007a Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Fri, 16 Dec 2022 12:31:00 +0100 Subject: [PATCH] fix(nui): remove padding when border is `shadow` --- lua/noice/util/nui.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/noice/util/nui.lua b/lua/noice/util/nui.lua index d54a8c0..60811cd 100644 --- a/lua/noice/util/nui.lua +++ b/lua/noice/util/nui.lua @@ -94,6 +94,9 @@ function M.normalize_popup_options(opts) if opts.border and (not opts.border.style or opts.border.style == "none" or opts.border.style == "shadow") then opts.border.text = nil end + if opts.border and opts.border.style == "shadow" then + opts.border.padding = nil + end return opts end