term stuff

main
Dominik Madarász 2024-11-10 17:25:22 +01:00
parent 165d9a4b36
commit ef572b6060
2 changed files with 5 additions and 3 deletions

View File

@ -18,9 +18,10 @@ 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", "<leader>;", function ()
vim.cmd("vsplit term://left")
vim.cmd("wincmd l")
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 })
-- Terminal mode mappings (Alt + hjkl and Alt + Arrow Keys)

View File

@ -3,5 +3,6 @@ vim.api.nvim_create_autocmd("UIEnter", {
callback = function()
vim.cmd("vsplit | terminal")
vim.cmd("wincmd l")
vim.cmd("Explore")
end,
})