From d85a4d01774b5649dbcda8526a26f201dff5ade4 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Fri, 16 Dec 2022 12:30:42 +0100 Subject: [PATCH] fix(nui): remove border text when style is `nil`, `"none"`, or `"shadow"` --- lua/noice/util/nui.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/noice/util/nui.lua b/lua/noice/util/nui.lua index 1d8b8a0..d54a8c0 100644 --- a/lua/noice/util/nui.lua +++ b/lua/noice/util/nui.lua @@ -91,7 +91,7 @@ function M.normalize_popup_options(opts) end -- fix border text - if opts.border and opts.border.style == "none" then + if opts.border and (not opts.border.style or opts.border.style == "none" or opts.border.style == "shadow") then opts.border.text = nil end return opts