if vim.g.did_load_overseer_plugin then return end vim.g.did_load_overseer_plugin = true require("which-key").add({ { "o", group = "[o]verseer", icon = "" }, { "ot", "OverseerToggle", desc = "[o]verseer: [t]oggle " }, { "oc", "OverseerRunCmd", desc = "[o]verseer: run [c]ommand" }, { "or", "OverseerRun", desc = "[o]verseer: [r]un task" }, { "oq", "OverseerQuickAction", desc = "[o]verseer: [q]uick action" }, { "oa", "OverseerTaskAction", desc = "[o]verseer: task [a]ction" }, { "oi", "OverseerInfo", desc = "[o]verseer: [i]nfo" }, }) local root_files = { '.vscode', '.git', } if require('user.file_exists').file_exists(vim.fs.dirname(vim.fs.find(root_files, { upward = true })[1]) .. "/.vscode/tasks.json") then require('overseer').setup({ strategy = { "toggleterm", quit_on_exit = "success", }, }) end