diff --git a/.config/nvim/lazyvim.json b/.config/nvim/lazyvim.json index ab9508c7..1f333e7f 100644 --- a/.config/nvim/lazyvim.json +++ b/.config/nvim/lazyvim.json @@ -72,5 +72,4 @@ "NEWS.md": "2123" }, "version": 2 -} - +} \ No newline at end of file diff --git a/.config/nvim/lua/plugins/extras/util/pomo.lua b/.config/nvim/lua/plugins/extras/util/pomo.lua new file mode 100644 index 00000000..dd0f6f4c --- /dev/null +++ b/.config/nvim/lua/plugins/extras/util/pomo.lua @@ -0,0 +1,39 @@ +return { + { + "epwalsh/pomo.nvim", + cmd = { "TimerStart", "TimerStop", "TimerRepeat" }, + dependencies = { + "rcarriga/nvim-notify", + }, + opts = { + notifiers = { + { + name = "Default", + opts = { + sticky = false, + }, + }, + }, + }, + }, + { + "nvim-lualine/lualine.nvim", + optional = true, + opts = function(_, opts) + local function pomoTimer() + 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 + table.insert(opts.sections.lualine_x, { pomoTimer }) + end, + }, +}