From 1e74889fdae5ee38ecf41e7ec9bd4888a284ad2e Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Mon, 1 Jul 2024 12:33:56 -0400 Subject: [PATCH] fix(overseer-nvim): fix conflicting overseer bindings --- .../code-runner/overseer-nvim/init.lua | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/lua/astrocommunity/code-runner/overseer-nvim/init.lua b/lua/astrocommunity/code-runner/overseer-nvim/init.lua index 6489abaa6..29977dab5 100644 --- a/lua/astrocommunity/code-runner/overseer-nvim/init.lua +++ b/lua/astrocommunity/code-runner/overseer-nvim/init.lua @@ -16,7 +16,25 @@ return { "OverseerTaskAction ", "OverseerClearCache", }, - opts = {}, + ---@param opts overseer.Config + opts = function(_, opts) + local astrocore = require "astrocore" + if astrocore.is_available "toggleterm.nvim" then opts.strategy = "toggleterm" end + opts.task_list = { + direction = "bottom", + bindings = { + [""] = false, + [""] = false, + [""] = false, + [""] = false, + q = "close", + K = "IncreaseDetail", + J = "DecreaseDetail", + [""] = "ScrollOutputUp", + [""] = "ScrollOutputDown", + }, + } + end, dependencies = { { "AstroNvim/astroui", opts = { icons = { Overseer = "" } } }, {