Add keybinds for different toggleterm directions

This commit is contained in:
Evie Litherland-Smith 2023-06-05 11:17:25 +01:00
parent 411da289ed
commit 1bef51fa05

View file

@ -3,6 +3,11 @@ return {
cond = not vim.g.vscode,
version = "*",
cmd = { "ToggleTerm" },
init = function() vim.keymap.set("n", "<leader>tt", "<cmd>ToggleTerm direction=tab<CR>") end,
init = function()
vim.keymap.set("n", "<leader>tt", "<cmd>ToggleTerm direction=tab<CR>")
vim.keymap.set("n", "<leader>th", "<cmd>ToggleTerm direction=horizontal<CR>")
vim.keymap.set("n", "<leader>tv", "<cmd>ToggleTerm direction=vertical<CR>")
vim.keymap.set("n", "<leader>tf", "<cmd>ToggleTerm direction=float<CR>")
end,
config = true,
}