diff --git a/lua/plugins/alpha.lua b/lua/plugins/alpha.lua index b1dd361..e6aeee0 100644 --- a/lua/plugins/alpha.lua +++ b/lua/plugins/alpha.lua @@ -14,7 +14,7 @@ return { dashboard.section.header.val = vim.split(logo, "\n") dashboard.section.buttons.val = { - dashboard.button("t", " Terminal", "ToggleTerm "), + dashboard.button("t", "󰝖 Tasks", 'lua require("taskwarrior_nvim").browser({"ready"}) '), dashboard.button("f", " Find file", "Telescope find_files "), dashboard.button("r", " Recent files", "Telescope oldfiles "), dashboard.button("o", " File browser", "Oil "), diff --git a/lua/plugins/noice.lua b/lua/plugins/noice.lua deleted file mode 100644 index 4f397c5..0000000 --- a/lua/plugins/noice.lua +++ /dev/null @@ -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 }, - }, - }, - }, -} diff --git a/lua/plugins/taskwarrior.lua b/lua/plugins/taskwarrior.lua index 3d52a90..cdaf0dc 100644 --- a/lua/plugins/taskwarrior.lua +++ b/lua/plugins/taskwarrior.lua @@ -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", "tr", browser "ready") + vim.keymap.set("n", "ta", browser "active") + vim.keymap.set("n", "tn", browser "next") + end, opts = {}, config = function() require("taskwarrior_nvim").setup() end, }