Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

telescope extension to manage timers #20

Merged
merged 14 commits into from
Apr 2, 2024
Merged

telescope extension to manage timers #20

merged 14 commits into from
Apr 2, 2024

Conversation

zuloo
Copy link
Contributor

@zuloo zuloo commented Mar 31, 2024

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

@zuloo zuloo closed this Mar 31, 2024
@zuloo zuloo reopened this Mar 31, 2024
Copy link
Owner

@epwalsh epwalsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @zuloo, this is great! I just have a suggestion about how to display the help.

lua/telescope/_extensions/pomodori.lua Show resolved Hide resolved
lua/telescope/_extensions/pomodori.lua Outdated Show resolved Hide resolved
Copy link
Owner

@epwalsh epwalsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @zuloo

@epwalsh epwalsh merged commit f682ed7 into epwalsh:main Apr 2, 2024
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants