nix.nvim/nvim/plugin/overseer.lua
jiriks74 e256516fe7
feat(plugins): Add nvim-dap and overseer
Added:
  - [nvim-dap](https://github.com/mfussenegger/nvim-dap)
  - [nvim-dap-ui](https://github.com/rcarriga/nvim-dap-ui)
  - [overseer.nvim](https://github.com/stevearc/overseer.nvim)
Removed:
  - NeoTree `<leader>o` keymap (it's now used for overseer)
2024-09-24 21:41:05 +02:00

29 lines
965 B
Lua

if vim.g.did_load_overseer_plugin then
return
end
vim.g.did_load_overseer_plugin = true
require("which-key").add({
{ "<leader>o", group = "[o]verseer", icon = "" },
{ "<leader>ot", "<Cmd>OverseerToggle<CR>", desc = "[o]verseer: [t]oggle " },
{ "<leader>oc", "<Cmd>OverseerRunCmd<CR>", desc = "[o]verseer: run [c]ommand" },
{ "<leader>or", "<Cmd>OverseerRun<CR>", desc = "[o]verseer: [r]un task" },
{ "<leader>oq", "<Cmd>OverseerQuickAction<CR>", desc = "[o]verseer: [q]uick action" },
{ "<leader>oa", "<Cmd>OverseerTaskAction<CR>", desc = "[o]verseer: task [a]ction" },
{ "<leader>oi", "<Cmd>OverseerInfo<CR>", 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