Skip to content

Commit

Permalink
overmind console
Browse files Browse the repository at this point in the history
  • Loading branch information
crivotz committed Mar 26, 2024
1 parent 9ad67ca commit 378608b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lua/config/plugins/toggleterm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ return {
{ "<leader>ld", "<cmd>lua _lazydocker_toggle()<CR>", desc = "Lazydocker" },
{ "<leader>ob", "<cmd>lua _overmind_backend_toggle()<CR>", desc = "Overmind backend" },
{ "<leader>of", "<cmd>lua _overmind_frontend_toggle()<CR>", desc = "Overmind frontend" },
{ "<leader>oc", "<cmd>lua _overmind_console_toggle()<CR>", desc = "Overmind console" },
},
config = function()
require("toggleterm").setup({
Expand Down Expand Up @@ -33,6 +34,7 @@ return {
local lazydocker = Terminal:new({ cmd = "lazydocker", hidden = true, direction = "float", close_on_exit = true })
local overmind_frontend = Terminal:new({ cmd = "overmind connect frontend", hidden = true, direction = "vertical", close_on_exit = true })
local overmind_backend = Terminal:new({ cmd = "overmind connect backend", hidden = true, direction = "vertical", close_on_exit = true })
local overmind_console = Terminal:new({ cmd = "overmind connect console", hidden = true, direction = "vertical", close_on_exit = true })

function _lazygit_toggle()
lazygit:toggle()
Expand All @@ -50,5 +52,9 @@ return {
overmind_backend:toggle()
end

function _overmind_console_toggle()
overmind_console:toggle()
end

end,
}

0 comments on commit 378608b

Please sign in to comment.