From 10af730fa0d7601aa76305f85e0adb0071dfd71f Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Tue, 4 Jun 2024 14:23:25 +0200 Subject: [PATCH] open overseer logs in current window --- lua/custom/plugins/overseer.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lua/custom/plugins/overseer.lua b/lua/custom/plugins/overseer.lua index 6a51813..d60c5bc 100644 --- a/lua/custom/plugins/overseer.lua +++ b/lua/custom/plugins/overseer.lua @@ -3,10 +3,13 @@ return { 'stevearc/overseer.nvim', opts = {}, config = function(_, opts) - require('overseer').setup(opts or {}) + local overseer = require 'overseer' + overseer.setup(opts or {}) -- Display status info about tasks - vim.keymap.set('n', 'ol', 'OverseerToggle', { desc = '[O]verseer [L]og' }) + vim.keymap.set('n', 'ol', function() + overseer.toggle { winid = 0 } + end, { desc = '[O]verseer [L]og' }) -- Run task by listing all in floating vim.keymap.set('n', 'or', 'OverseerRun', { desc = '[O]verseer [R]un' }) end,