diff --git a/lua/config/terminals.lua b/lua/config/terminals.lua index 1373aa9..d4f0a18 100644 --- a/lua/config/terminals.lua +++ b/lua/config/terminals.lua @@ -37,7 +37,7 @@ function M.setup() local opencode = Terminal:new { cmd = "opencode", hidden = true, - direction = "tab", + direction = "vertical", close_on_exit = true, on_open = function(term) vim.cmd "startinsert!" @@ -59,7 +59,7 @@ function M.setup() local mk = Terminal:new { cmd = "mk -t", hidden = true, - direction = "vertical", + direction = "horizontal", on_open = function(term) vim.cmd "startinsert!" vim.api.nvim_buf_set_keymap(term.bufnr, "n", "q", "close", { noremap = true, silent = true }) diff --git a/lua/plugins/astrocore.lua b/lua/plugins/astrocore.lua index 10c7306..b5d3b52 100644 --- a/lua/plugins/astrocore.lua +++ b/lua/plugins/astrocore.lua @@ -434,13 +434,6 @@ return { desc = "Exit terminal and close window", }, -- Exit terminal mode and close window - [""] = { - function() - vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes([[]], true, false, true), "n", false) - vim.cmd "close" - end, - desc = "Exit terminal and close window", - }, [""] = { function() vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes([[h]], true, false, true), "n", false)