91 lines
2 KiB
Lua
91 lines
2 KiB
Lua
|
return {
|
||
|
{
|
||
|
"folke/which-key.nvim",
|
||
|
opts = function(_, opts)
|
||
|
if LazyVim.has("noice.nvim") then
|
||
|
opts.defaults["<leader>o"] = { name = "+overseer" }
|
||
|
end
|
||
|
end,
|
||
|
},
|
||
|
|
||
|
{
|
||
|
"folke/edgy.nvim",
|
||
|
optional = true,
|
||
|
opts = function(_, opts)
|
||
|
opts.right = opts.right or {}
|
||
|
table.insert(opts.right, {
|
||
|
title = "Overseer",
|
||
|
ft = "OverseerList",
|
||
|
open = function()
|
||
|
require("overseer").open()
|
||
|
end,
|
||
|
})
|
||
|
end,
|
||
|
},
|
||
|
|
||
|
{
|
||
|
"nvim-neotest/neotest",
|
||
|
dependencies = "stevearc/overseer.nvim",
|
||
|
opts = function(_, opts)
|
||
|
local consumers = opts.consumers or {}
|
||
|
consumers.overseer = require("neotest.consumers.overseer")
|
||
|
end,
|
||
|
},
|
||
|
|
||
|
{
|
||
|
"stevearc/overseer.nvim",
|
||
|
cmd = {
|
||
|
"OverseerOpen",
|
||
|
"OverseerClose",
|
||
|
"OverseerToggle",
|
||
|
"OverseerSaveBundle",
|
||
|
"OverseerLoadBundle",
|
||
|
"OverseerDeleteBundle",
|
||
|
"OverseerRunCmd",
|
||
|
"OverseerRun",
|
||
|
"OverseerInfo",
|
||
|
"OverseerBuild",
|
||
|
"OverseerQuickAction",
|
||
|
"OverseerTaskAction",
|
||
|
"OverseerClearCache",
|
||
|
},
|
||
|
dependencies = "nvim-telescope/telescope.nvim",
|
||
|
opts = {
|
||
|
dap = false,
|
||
|
task_list = {
|
||
|
bindings = {
|
||
|
["<C-h>"] = false,
|
||
|
["<C-j>"] = false,
|
||
|
["<C-k>"] = false,
|
||
|
["<C-l>"] = false,
|
||
|
},
|
||
|
},
|
||
|
form = {
|
||
|
win_opts = {
|
||
|
winblend = 0,
|
||
|
},
|
||
|
},
|
||
|
confirm = {
|
||
|
win_opts = {
|
||
|
winblend = 0,
|
||
|
},
|
||
|
},
|
||
|
task_win = {
|
||
|
win_opts = {
|
||
|
winblend = 0,
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
-- stylua: ignore
|
||
|
keys = {
|
||
|
{ "<leader>ow", "<cmd>OverseerToggle<cr>", desc = "Task list" },
|
||
|
{ "<leader>oo", "<cmd>OverseerRun<cr>", desc = "Run task" },
|
||
|
{ "<leader>oq", "<cmd>OverseerQuickAction<cr>", desc = "Action recent task" },
|
||
|
{ "<leader>oi", "<cmd>OverseerInfo<cr>", desc = "Overseer Info" },
|
||
|
{ "<leader>ob", "<cmd>OverseerBuild<cr>", desc = "Task builder" },
|
||
|
{ "<leader>ot", "<cmd>OverseerTaskAction<cr>", desc = "Task action" },
|
||
|
{ "<leader>oc", "<cmd>OverseerClearCache<cr>", desc = "Clear cache" },
|
||
|
},
|
||
|
},
|
||
|
}
|