2023-05-04 12:39:25 +01:00
|
|
|
return {
|
|
|
|
"akinsho/toggleterm.nvim",
|
2023-05-31 16:47:30 +01:00
|
|
|
cond = not vim.g.vscode,
|
2023-05-04 12:39:25 +01:00
|
|
|
version = "*",
|
|
|
|
cmd = { "ToggleTerm" },
|
2023-06-05 11:17:25 +01:00
|
|
|
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,
|
2023-05-16 09:22:33 +01:00
|
|
|
config = true,
|
2023-05-04 12:39:25 +01:00
|
|
|
}
|