-
Hi, i'm trying to get the terminal opening on the left side. Below I'm providing my current binding, but i have no idea what extra params I should provide to get opened on the left side. Thanks for any help :) map({ "n", "t" }, "<C-`>", function()
require("nvchad.term").toggle { pos = "vsp", id = "vtoggleTerm" }
end, { desc = "terminal toggleable vertical term" }) |
Beta Was this translation helpful? Give feedback.
Answered by
men232
Apr 30, 2024
Replies: 1 comment
-
Ok, seems i found solution, let me know about it map({ "n", "t" }, "<C-`>", function()
require("nvchad.term").toggle { pos = "vsp", id = "vtoggleTerm" }
if vim.opt.buftype:get() == "terminal" then
local current_win = vim.api.nvim_get_current_win()
vim.cmd "wincmd H"
local new_win = vim.api.nvim_get_current_win()
if current_win ~= new_win then
vim.cmd "wincmd L"
end
end
end, { desc = "terminal toggleable vertical term" }) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
siduck
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok, seems i found solution, let me know about it