nvim-config/lua/custom/plugins/overseer.lua

23 lines
585 B
Lua
Raw Normal View History

return {
-- Simple task runner plugin
'stevearc/overseer.nvim',
opts = {},
config = function()
2024-06-04 12:23:25 +00:00
local overseer = require 'overseer'
overseer.setup {
templates = {
'builtin',
'golang.run_project',
'golang.run_file',
},
}
-- Display status info about tasks
2024-06-04 12:23:25 +00:00
vim.keymap.set('n', '<leader>ol', function()
overseer.toggle { winid = 0 }
end, { desc = '[O]verseer [L]og' })
-- Run task by listing all in floating
vim.keymap.set('n', '<leader>or', '<cmd>OverseerRun<cr>', { desc = '[O]verseer [R]un' })
end,
}