feat(nvim): allow split terms to be spawned in any mode

This commit is contained in:
Price Hiller 2024-06-12 00:14:09 -05:00
parent a494123bfa
commit 01c7e0d95a
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -29,10 +29,32 @@ vim.keymap.set({ "", "!", "v", "t" }, "<D-z>", "<cmd>tabprevious<CR>", { noremap
-- Spawn new terminal in new tab
vim.keymap.set({ "", "!", "v", "t" }, "<D-t>", "<cmd>tabnew | terminal<CR>", { noremap = true, silent = true })
vim.keymap.set({ "n" }, "<C-S-Right>", "<cmd>vertical belowright terminal<CR>", { noremap = true, silent = true })
vim.keymap.set({ "n" }, "<C-S-Left>", "<cmd>vertical aboveleft terminal<CR>", { noremap = true, silent = true })
vim.keymap.set({ "n" }, "<C-S-Up>", "<cmd>horizontal aboveleft terminal<CR>", { noremap = true, silent = true })
vim.keymap.set({ "n" }, "<C-S-Down>", "<cmd>horizontal belowright terminal<CR>", { noremap = true, silent = true })
-- Spawn terminal in split direction
vim.keymap.set(
{ "", "!", "v", "t" },
"<C-S-Right>",
"<cmd>vertical belowright terminal<CR>",
{ noremap = true, silent = true }
)
vim.keymap.set(
{ "", "!", "v", "t" },
"<C-S-Left>",
"<cmd>vertical aboveleft terminal<CR>",
{ noremap = true, silent = true }
)
vim.keymap.set(
{ "", "!", "v", "t" },
"<C-S-Up>",
"<cmd>horizontal aboveleft terminal<CR>",
{ noremap = true, silent = true }
)
vim.keymap.set(
{ "", "!", "v", "t" },
"<C-S-Down>",
"<cmd>horizontal belowright terminal<CR>",
{ noremap = true, silent = true }
)
-- Zoom in & out
vim.g.neovide_scale_factor = 1