diff --git a/lua/zak/remap.lua b/lua/zak/remap.lua index b8c7855..842bae9 100644 --- a/lua/zak/remap.lua +++ b/lua/zak/remap.lua @@ -18,9 +18,10 @@ vim.keymap.set("n", "", "") -- terminal remaps vim.keymap.set("t", "", "", { noremap = true, silent = true }) -- vim.keymap.set("n", ";", ":vsplit term://left", { noremap = true, silent = true }) -vim.keymap.set("n", ";", function () - vim.cmd("vsplit term://left") - vim.cmd("wincmd l") +vim.keymap.set("n", "", function () + vim.cmd("belowright split | resize " .. math.floor(vim.o.lines * 0.25)) + vim.cmd("terminal") + vim.cmd("startinsert") end, { noremap = true, silent = true }) -- Terminal mode mappings (Alt + hjkl and Alt + Arrow Keys) diff --git a/lua/zak/session.lua b/lua/zak/session.lua index 02ea1a2..f41be32 100644 --- a/lua/zak/session.lua +++ b/lua/zak/session.lua @@ -3,5 +3,6 @@ vim.api.nvim_create_autocmd("UIEnter", { callback = function() vim.cmd("vsplit | terminal") vim.cmd("wincmd l") + vim.cmd("Explore") end, })