Skip to content

Commit

Permalink
standardize vim.log.levels output (#12)
Browse files Browse the repository at this point in the history
* standarize vim.log.levels output

* adding change to changlog
  • Loading branch information
bassamsdata authored Jan 7, 2024
1 parent bd32d8a commit 7886078
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## Unreleased

### Fixed

- Make it compatible with `mini.notify` plugin.

## [v0.4.2](https://github.com/epwalsh/pomo.nvim/releases/tag/v0.4.2) - 2023-12-27

### Added
Expand Down
10 changes: 5 additions & 5 deletions lua/pomo/notifiers/default.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ DefaultNotifier.tick = function(self, time_left)
util.format_time(time_left),
self.timer.paused and " (paused)" or ""
),
"info",
vim.log.levels.INFO,
false
)
end
Expand All @@ -96,19 +96,19 @@ DefaultNotifier.start = function(self)
if not self.sticky then
timeout = 1000
end
self:_update(string.format(" %s starting...", self.text_icon), "info", timeout)
self:_update(string.format(" %s starting...", self.text_icon), vim.log.levels.INFO, timeout)
end

DefaultNotifier.done = function(self)
self:_update(string.format(" %s timer done!", self.text_icon), "warn", 3000)
self:_update(string.format(" %s timer done!", self.text_icon), vim.log.levels.WARN, 3000)
end

DefaultNotifier.stop = function(self)
self:_update(string.format(" %s stopping...", self.text_icon), "info", 1000)
self:_update(string.format(" %s stopping...", self.text_icon), vim.log.levels.INFO, 1000)
end

DefaultNotifier.hide = function(self)
self:_update(nil, "info", 100)
self:_update(nil, vim.log.levels.INFO, 100)
self.sticky = false
end

Expand Down

0 comments on commit 7886078

Please sign in to comment.