Add keybinds for taskwarrior reports, add task shortcut to alpha
This commit is contained in:
parent
778c2b0c49
commit
33ede73958
|
@ -14,7 +14,7 @@ return {
|
|||
|
||||
dashboard.section.header.val = vim.split(logo, "\n")
|
||||
dashboard.section.buttons.val = {
|
||||
dashboard.button("t", " Terminal", "<cmd>ToggleTerm <CR>"),
|
||||
dashboard.button("t", " Tasks", '<cmd>lua require("taskwarrior_nvim").browser({"ready"}) <CR>'),
|
||||
dashboard.button("f", " Find file", "<cmd>Telescope find_files <CR>"),
|
||||
dashboard.button("r", " Recent files", "<cmd>Telescope oldfiles <CR>"),
|
||||
dashboard.button("o", " File browser", "<cmd>Oil <CR>"),
|
||||
|
|
|
@ -1,35 +0,0 @@
|
|||
return {
|
||||
"folke/noice.nvim",
|
||||
enabled = false,
|
||||
cond = not vim.g.neovide,
|
||||
event = { "VeryLazy" },
|
||||
dependencies = {
|
||||
"MunifTanjim/nui.nvim",
|
||||
"rcarriga/nvim-notify",
|
||||
"stevearc/dressing.nvim",
|
||||
},
|
||||
config = true,
|
||||
opts = {
|
||||
presets = {
|
||||
bottom_search = true,
|
||||
command_palette = true,
|
||||
long_message_to_split = true,
|
||||
inc_rename = false,
|
||||
lsp_doc_border = true,
|
||||
},
|
||||
lsp = {
|
||||
override = {
|
||||
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
|
||||
["vim.lsp.util.stylize_markdown"] = true,
|
||||
["cmp.entry.get_documentation"] = true,
|
||||
},
|
||||
},
|
||||
views = {
|
||||
mini = {
|
||||
position = { row = -2 },
|
||||
border = { style = "rounded" },
|
||||
win_options = { winblend = 0 },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
|
@ -1,7 +1,18 @@
|
|||
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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue