Skip to content

Commit

Permalink
feat(format): allow config.format.level.icons to be false. Fixes #274
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 21, 2022
1 parent e4a4290 commit aa68eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/noice/text/format/formatters.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ end
function M.level(message, opts)
if message.level then
local str = message.level:sub(1, 1):upper() .. message.level:sub(2)
if opts.icons[message.level] then
if opts.icons and opts.icons[message.level] then
str = opts.icons[message.level] .. " " .. str
end
message:append(" " .. str .. " ", opts.hl_group[message.level])
Expand Down

0 comments on commit aa68eb6

Please sign in to comment.