diff --git a/.config/nvim/lua/plugins/lualine.lua b/.config/nvim/lua/plugins/lualine.lua index 63531b9e..87b234e6 100644 --- a/.config/nvim/lua/plugins/lualine.lua +++ b/.config/nvim/lua/plugins/lualine.lua @@ -50,6 +50,19 @@ local sections = { require("noice").api.status.mode.get, cond = require("noice").api.status.mode.has, }, + function() + local ok, pomo = pcall(require, "pomo") + if not ok then + return "" + end + + local timer = pomo.get_first_to_finish() + if timer == nil then + return "" + end + + return "󰄉 " .. tostring(timer) + end, }, lualine_b = { "branch", "diff" }, lualine_c = { { "filename", path = 1 } }, diff --git a/.config/nvim/lua/plugins/pomo.lua b/.config/nvim/lua/plugins/pomo.lua index cbb0d262..d1b52ae5 100644 --- a/.config/nvim/lua/plugins/pomo.lua +++ b/.config/nvim/lua/plugins/pomo.lua @@ -9,5 +9,13 @@ return { }, opts = { -- See below for full list of options 👇 + notifiers = { + { + name = "Default", + opts = { + sticky = false, + }, + }, + }, }, }