Dominik Madarász 2024-11-10 17:29:00 +01:00
parent ef572b6060
commit 70efa980c0
1 changed files with 2 additions and 1 deletions

View File

@ -18,11 +18,12 @@ vim.keymap.set("n", "<C-m>", "<C-6>")
-- terminal remaps
vim.keymap.set("t", "<Esc>", "<C-\\><C-n>", { noremap = true, silent = true })
-- vim.keymap.set("n", "<leader>;", ":vsplit term://left<CR><A-Right><CR>", { noremap = true, silent = true })
vim.keymap.set("n", "<C-k>", 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', '<A-h>', '<C-\\><C-N><C-w>h', { noremap = true, silent = true })