2024-10-10 13:23:08 -07:00
|
|
|
return {
|
|
|
|
"toggleterm.nvim",
|
|
|
|
keys = {
|
|
|
|
{
|
|
|
|
"<C-l>",
|
|
|
|
function()
|
|
|
|
vim.cmd("ToggleTerm direction=float")
|
|
|
|
end,
|
|
|
|
mode = { "n", "t", "v" },
|
2024-12-28 23:28:52 -08:00
|
|
|
desc = "Toggle terminal",
|
2024-10-10 13:23:08 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"<leader>tv",
|
|
|
|
function()
|
|
|
|
vim.cmd("ToggleTerm direction=vertical")
|
|
|
|
end,
|
|
|
|
desc = "Vertical terminal",
|
|
|
|
mode = "n",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"<leader>tt",
|
|
|
|
function()
|
|
|
|
vim.cmd("ToggleTerm direction=horizontal")
|
|
|
|
end,
|
|
|
|
desc = "Horizontal terminal",
|
|
|
|
mode = "n",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"<leader>ts",
|
|
|
|
function()
|
|
|
|
vim.cmd("TermSelect")
|
|
|
|
end,
|
|
|
|
desc = "Terminal select",
|
|
|
|
mode = "n",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
after = function()
|
|
|
|
require("toggleterm").setup({
|
|
|
|
shade_terminals = false,
|
|
|
|
})
|
|
|
|
end,
|
|
|
|
}
|