Skip to content

Commit c8656e3

Browse files
committed
fix(spec): Fixed inconsistency of message decorations
1 parent 8e2c1eb commit c8656e3

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

lua/ui/spec.lua

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,10 @@ spec.default = {
833833
decorations = function (msg)
834834
local config = {
835835
icon = {
836-
{ "", "UIMessageDefault" }
836+
{ "▍󰍡 ", "UIMessageDefaultSign" }
837+
},
838+
padding = {
839+
{ "", "UIMessageDefaultSign" }
837840
}
838841
};
839842

@@ -870,8 +873,8 @@ spec.default = {
870873
};
871874
config.line_hl_group = "UIMessageInfo";
872875
end
873-
elseif string.match(content[2] or "", " .+ %w+%.nvim ") or string.match(content[2] or "", " %w+%.%w+ ") then
874-
-- Error message format used by my plugins & blink.cmp
876+
elseif string.match(content[2] or "", " .+ %w+%.nvim ") or string.match(content[2] or "", " [%w/\\]+%.%w+ ") then
877+
-- Error message format used by *plugins*.
875878
-- e plugin.nvim : Some message.
876879
return {};
877880
end
@@ -1152,10 +1155,10 @@ spec.default = {
11521155

11531156
decorations = {
11541157
icon = {
1155-
{ "", "UIMessageErrorSign" }
1158+
{ "", "UIMessageErrorSign" }
11561159
},
11571160
padding = {
1158-
{ "", "UIMessageErrorSign" }
1161+
{ " ", "UIMessageErrorSign" }
11591162
},
11601163

11611164
line_hl_group = "UIMessageError"
@@ -1394,7 +1397,7 @@ spec.default = {
13941397
{ "▍󰡠 ", "UICmdlineSubstituteIcon" }
13951398
},
13961399
padding = {
1397-
{ "", "UICmdlineSubstituteIcon" }
1400+
{ " ", "UICmdlineSubstituteIcon" }
13981401
},
13991402

14001403
line_hl_group = "UICmdlineSubstitute"

0 commit comments

Comments
 (0)