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 -- terminal remaps
vim.keymap.set("t", "<Esc>", "<C-\\><C-n>", { noremap = true, silent = true }) 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>;", ":vsplit term://left<CR><A-Right><CR>", { noremap = true, silent = true })
vim.keymap.set("n", "<leader>;", function () vim.keymap.set("n", "<C-k>", function ()
vim.cmd("vsplit term://left") vim.cmd("belowright split | resize " .. math.floor(vim.o.lines * 0.25))
vim.cmd("wincmd l") vim.cmd("terminal")
vim.cmd("startinsert")
end, { noremap = true, silent = true }) end, { noremap = true, silent = true })
-- Terminal mode mappings (Alt + hjkl and Alt + Arrow Keys) -- Terminal mode mappings (Alt + hjkl and Alt + Arrow Keys)

View File

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