main
Dominik Madarász 2024-11-10 16:58:00 +01:00
parent a97eac8f72
commit e66dd946dc
1 changed files with 5 additions and 1 deletions

View File

@ -17,7 +17,11 @@ 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>", { noremap = true, silent = true })
-- vim.keymap.set("n", "<leader>;", ":vsplit term://left<CR><A-Right><CR>", { noremap = true, silent = true })
vim.keymap.set("n", "<leader>;", function ()
vim.cmd("vsplit term://left")
vim.cmd("wincmd l")
end, { noremap = true, silent = true })
-- 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 })