Skip to content

Commit

Permalink
fix(config): lower case level
Browse files Browse the repository at this point in the history
See #77
  • Loading branch information
rcarriga committed May 16, 2022
1 parent d4a01ee commit c6ca279
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/notify/config/init.lua
Expand Up @@ -124,7 +124,11 @@ end
---@param colour_or_group string

function Config.level()
return vim.lsp.log_levels[user_config.level] or vim.lsp.log_levels.INFO
local level = user_config.level
if type(level) == "number" then
level = vim.lsp.log_levels[level] or vim.lsp.log_levels.INFO
end
return vim.lsp.log_levels[vim.fn.toupper(level)] or vim.lsp.log_levels.INFO
end

function Config.fps()
Expand Down

0 comments on commit c6ca279

Please sign in to comment.