2023-07-20 13:25:42 +01:00
|
|
|
local browser = function(report)
|
|
|
|
-- Return function to call taskwarrior browser with given report
|
|
|
|
return function() require("taskwarrior_nvim").browser { report } end
|
|
|
|
end
|
|
|
|
|
2023-07-19 11:55:22 +01:00
|
|
|
return {
|
2023-07-20 09:31:28 +01:00
|
|
|
"ColonQExclamationMark/taskwarrior.nvim",
|
|
|
|
branch = "1-Issues-initializing", -- Temp until PR is merged upstream
|
2023-07-20 13:25:42 +01:00
|
|
|
dependencies = { "nvim-telescope/telescope.nvim" },
|
2023-07-19 11:55:22 +01:00
|
|
|
cmd = "Task",
|
2023-07-20 13:25:42 +01:00
|
|
|
init = function()
|
|
|
|
vim.keymap.set("n", "<leader>tr", browser "ready")
|
|
|
|
vim.keymap.set("n", "<leader>ta", browser "active")
|
|
|
|
vim.keymap.set("n", "<leader>tn", browser "next")
|
|
|
|
end,
|
2023-07-19 11:55:22 +01:00
|
|
|
opts = {},
|
2023-07-20 09:31:28 +01:00
|
|
|
config = function() require("taskwarrior_nvim").setup() end,
|
2023-07-19 11:55:22 +01:00
|
|
|
}
|