19 lines
673 B
Lua
19 lines
673 B
Lua
local browser = function(report)
|
|
-- Return function to call taskwarrior browser with given report
|
|
return function() require("taskwarrior_nvim").browser { report } end
|
|
end
|
|
|
|
return {
|
|
"ColonQExclamationMark/taskwarrior.nvim",
|
|
branch = "1-Issues-initializing", -- Temp until PR is merged upstream
|
|
dependencies = { "nvim-telescope/telescope.nvim" },
|
|
cmd = "Task",
|
|
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,
|
|
opts = {},
|
|
config = function() require("taskwarrior_nvim").setup() end,
|
|
}
|