Skip to content

Commit

Permalink
fix(nui): remove padding when border is shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 16, 2022
1 parent d85a4d0 commit 1515007
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/noice/util/nui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1515007

Please sign in to comment.