From 70efa980c02a4be06ddd150bfc43fd7d1588e51a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Sun, 10 Nov 2024 17:29:00 +0100 Subject: [PATCH] lol --- lua/zak/remap.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/zak/remap.lua b/lua/zak/remap.lua index 842bae9..24a2568 100644 --- a/lua/zak/remap.lua +++ b/lua/zak/remap.lua @@ -18,11 +18,12 @@ 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("belowright split | resize " .. math.floor(vim.o.lines * 0.25)) vim.cmd("terminal") vim.cmd("startinsert") -end, { noremap = true, silent = true }) +end) -- Terminal mode mappings (Alt + hjkl and Alt + Arrow Keys) vim.api.nvim_set_keymap('t', '', 'h', { noremap = true, silent = true })