Skip to content

Commit 4e13fcb

Browse files
committed
fix(messages): Added extra lua pattern for label-styled messages from plugins
E.g. blink.cmp
1 parent 42167e6 commit 4e13fcb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lua/ui/spec.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,8 @@ spec.default = {
730730
local content = msg.content[1];
731731
local hl = utils.attr_to_hl(content[3]);
732732

733+
require("ui.log").print(vim.inspect(content[2]), "HERE")
734+
733735
if #msg.content == 1 then
734736
if hl == "WarningMsg" then
735737
config.icon = {
@@ -756,7 +758,7 @@ spec.default = {
756758
};
757759
config.line_hl_group = "UIMessageInfo";
758760
end
759-
elseif string.match(content[2] or "", " .+ %w+%.nvim ") then
761+
elseif string.match(content[2] or "", " .+ %w+%.nvim ") or string.match(content[2] or "", " %w+%.%w+ ") then
760762
-- Error message format used by my plugins & blink.cmp
761763
-- e plugin.nvim : Some message.
762764
return {};

0 commit comments

Comments
 (0)