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
154 stars 7 forks source link

telescope extension to manage timers #20

Closed zuloo closed 3 months ago

zuloo commented 3 months ago

wehn using Lazy just put the following in your plugins/pomo.lua

{
  "epwalsh/pomo.nvim",
  ...
  init = function()
    require("telescope").load_extension("pomodori")
  end
  ...
}

when you started multiple timers just enter

:Telescope pomodori timers

A nice keybind for the Telescope window with a nicer styling - could not work out how to set a default theme for my picker

vim.keymap.set("n", "<leader>pt", function()
  require('telescope').extensions.pomodori.timers(
    require("telescope.themes").get_dropdown()
  )
end, { desc = "Pomodori Manage All Timers"})

Hope this helps