nvim/lua/plugins/toggleterm.lua

23 lines
545 B
Lua
Raw Normal View History

2024-06-17 15:22:39 +07:00
return {
2024-08-14 23:12:33 +07:00
enabled = false,
2024-06-17 15:22:39 +07:00
"akinsho/toggleterm.nvim",
keys = {
{ "<F5>", "Open Toggleterm" },
},
cmd = { "ToggleTerm" },
version = "*",
opts = {
size = function(term)
if term.direction == "horizontal" then
if vim.o.lines < 60 then
return 12
end
return 20
elseif term.direction == "vertical" then
return vim.o.columns * 0.3
end
end,
open_mapping = [[<F5>]],
},
}