Skip to content

Commit

Permalink
fix(overseer-nvim): fix conflicting overseer bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Jul 1, 2024
1 parent 90ff9f2 commit 1e74889
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion lua/astrocommunity/code-runner/overseer-nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
["<C-l>"] = false,
["<C-h>"] = false,
["<C-k>"] = false,
["<C-j>"] = false,
q = "<Cmd>close<CR>",
K = "IncreaseDetail",
J = "DecreaseDetail",
["<C-p>"] = "ScrollOutputUp",
["<C-n>"] = "ScrollOutputDown",
},
}
end,
dependencies = {
{ "AstroNvim/astroui", opts = { icons = { Overseer = "" } } },
{
Expand Down

0 comments on commit 1e74889

Please sign in to comment.