Skip to content

Commit

Permalink
Added pomo.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
handdara committed Nov 29, 2024
1 parent bd3d2d5 commit 77f033a
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 58 deletions.
2 changes: 2 additions & 0 deletions fst/him/nvim-nrw/lazy-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@
"neogit": { "branch": "master", "commit": "c3a1e8f1b568c7ea844645bc327c22908ea3df68" },
"nvim-cmp": { "branch": "main", "commit": "ed31156aa2cc14e3bc066c59357cc91536a2bc01" },
"nvim-lspconfig": { "branch": "master", "commit": "e869c7e6af0a3c40a2b344a9765779d74dd12720" },
"nvim-notify": { "branch": "master", "commit": "fbef5d32be8466dd76544a257d3f3dce20082a07" },
"nvim-surround": { "branch": "main", "commit": "9f0cb495f25bff32c936062d85046fbda0c43517" },
"nvim-treesitter": { "branch": "master", "commit": "427a90ae70f66c2fdf2d9ad16a0f08e9697d90d9" },
"nvim-treesitter-textobjects": { "branch": "master", "commit": "ad8f0a472148c3e0ae9851e26a722ee4e29b1595" },
"nvim-web-devicons": { "branch": "master", "commit": "edbe0a65cfacbbfff6a4a1e98ddd60c28c560509" },
"obsidian.nvim": { "branch": "main", "commit": "ae1f76a75c7ce36866e1d9342a8f6f5b9c2caf9b" },
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
"pomo.nvim": { "branch": "main", "commit": "7e06e5221d8d1e596a0ab29dd4d7fcee5f3cd05a" },
"popup.nvim": { "branch": "master", "commit": "b7404d35d5d3548a82149238289fa71f7f6de4ac" },
"rose-pine": { "branch": "main", "commit": "07a887a7bef4aacea8c7caebaf8cbf808cdc7a8e" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" },
Expand Down
116 changes: 58 additions & 58 deletions fst/him/nvim-nrw/lua/handdara/plugins/obsidian.lua
Original file line number Diff line number Diff line change
@@ -1,56 +1,56 @@
---@diagnostic disable: unused-local
local ansible_path = vim.fn.expand("~/MEGA/ansible")

-- local pomo_opts = {
-- -- How often the notifiers are updated.
-- update_interval = 1000,
-- -- Configure the default notifiers to use for each timer.
-- -- You can also configure different notifiers for timers given specific names, see
-- -- the 'timers' field below.
-- notifiers = {
-- -- The "Default" notifier uses 'vim.notify' and works best when you have 'nvim-notify' installed.
-- {
-- name = "Default",
-- opts = {
-- -- With 'nvim-notify', when 'sticky = true' you'll have a live timer pop-up
-- -- continuously displayed. If you only want a pop-up notification when the timer starts
-- -- and finishes, set this to false.
-- sticky = true,
-- -- Configure the display icons:
-- title_icon = "",
-- text_icon = "",
-- -- Replace the above with these if you don't have a patched font:
-- -- title_icon = "⏳",
-- -- text_icon = "⏱️",
-- },
-- },
-- -- The "System" notifier sends a system notification when the timer is finished.
-- -- Available on MacOS and Windows natively and on Linux via the `libnotify-bin` package.
-- { name = "System" },
-- -- You can also define custom notifiers by providing an "init" function instead of a name.
-- -- { init = function(timer) ... end }
-- },
-- -- Override the notifiers for specific timer names.
-- timers = {
-- -- For example, use only the "System" notifier when you create a timer called "Break",
-- -- e.g. ':TimerStart 2m Break'.
-- Break = {
-- { name = "System" },
-- },
-- },
-- -- You can optionally define custom timer sessions.
-- sessions = {
-- -- Example session configuration for a session called "pomodoro".
-- pomodoro = {
-- { name = "Work", duration = "25m" },
-- { name = "Short Break", duration = "5m" },
-- { name = "Work", duration = "25m" },
-- { name = "Short Break", duration = "5m" },
-- { name = "Work", duration = "25m" },
-- { name = "Long Break", duration = "15m" },
-- },
-- },
-- }
local pomo_opts = {
-- How often the notifiers are updated.
update_interval = 1000,
-- Configure the default notifiers to use for each timer.
-- You can also configure different notifiers for timers given specific names, see
-- the 'timers' field below.
notifiers = {
-- The "Default" notifier uses 'vim.notify' and works best when you have 'nvim-notify' installed.
{
name = "Default",
opts = {
-- With 'nvim-notify', when 'sticky = true' you'll have a live timer pop-up
-- continuously displayed. If you only want a pop-up notification when the timer starts
-- and finishes, set this to false.
sticky = true,
-- Configure the display icons:
title_icon = "",
text_icon = "",
-- Replace the above with these if you don't have a patched font:
-- title_icon = "⏳",
-- text_icon = "⏱️",
},
},
-- The "System" notifier sends a system notification when the timer is finished.
-- Available on MacOS and Windows natively and on Linux via the `libnotify-bin` package.
{ name = "System" },
-- You can also define custom notifiers by providing an "init" function instead of a name.
-- { init = function(timer) ... end }
},
-- Override the notifiers for specific timer names.
timers = {
-- For example, use only the "System" notifier when you create a timer called "Break",
-- e.g. ':TimerStart 2m Break'.
Break = {
{ name = "System" },
},
},
-- You can optionally define custom timer sessions.
sessions = {
-- Example session configuration for a session called "pomodoro".
pomodoro = {
{ name = "Work", duration = "25m" },
{ name = "Short Break", duration = "5m" },
{ name = "Work", duration = "25m" },
{ name = "Short Break", duration = "5m" },
{ name = "Work", duration = "25m" },
{ name = "Long Break", duration = "15m" },
},
},
}

return {
"epwalsh/obsidian.nvim",
Expand All @@ -64,14 +64,14 @@ return {
'hrsh7th/nvim-cmp',
'nvim-telescope/telescope.nvim',
'nvim-treesitter/nvim-treesitter',
-- {
-- "epwalsh/pomo.nvim",
-- version = "*", -- Recommended, use latest release instead of latest commit
-- lazy = true,
-- cmd = { "TimerStart", "TimerRepeat", "TimerSession" },
-- opts = pomo_opts,
-- },
-- 'rcarriga/nvim-notify', -- for pomo.nvim, optional, but highly recommended if you want to use the "Default" timer
{
"epwalsh/pomo.nvim",
version = "*", -- Recommended, use latest release instead of latest commit
lazy = true,
cmd = { "TimerStart", "TimerRepeat", "TimerSession" },
opts = pomo_opts,
},
'rcarriga/nvim-notify', -- for pomo.nvim, optional, but highly recommended if you want to use the "Default" timer
},
init = function()
require 'handdara.obsidian'
Expand Down

0 comments on commit 77f033a

Please sign in to comment.