Add keybinds for different toggleterm directions
This commit is contained in:
parent
411da289ed
commit
1bef51fa05
|
@ -3,6 +3,11 @@ return {
|
||||||
cond = not vim.g.vscode,
|
cond = not vim.g.vscode,
|
||||||
version = "*",
|
version = "*",
|
||||||
cmd = { "ToggleTerm" },
|
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,
|
config = true,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue