nvim/lua/plugins/toggleterm.lua

14 lines
498 B
Lua

return {
"akinsho/toggleterm.nvim",
cond = not vim.g.vscode,
version = "*",
cmd = { "ToggleTerm" },
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,
}