epwalsh / pomo.nvim

:new: :stopwatch: A simple, customizable pomodoro timer for Neovim, written in Lua, with nvim-notify, lualine, and telescope integrations
Apache License 2.0
187 stars 10 forks source link

standardize vim.log.levels output #12

Closed bassamsdata closed 9 months ago

bassamsdata commented 9 months ago

Just made a small commit to standardize the output of vim.log.levels.INFO and vim.log.levels.WARN. This change ensures compatibility with mini.notify, which strictly aligns with vim.notify, requiring the level parameter to be of type integer or nil. The explanation of the issue in here #640.

From the help:

vim.notify({msg}, {level}, {opts})                              *vim.notify()*
 {level}  (integer|nil) One of the values from |vim.log.levels|.

Please note that this adjustment doesn't impact other methods like vanilla vim.notify and nvim-notify.