term consistent sizes

This commit is contained in:
Christoph J. Scherr 2024-01-20 19:00:49 +01:00
parent bdee9169cf
commit 93eb1ca84c
Signed by: PlexSheep
GPG Key ID: 7CDD0B14851A08EF
1 changed files with 9 additions and 0 deletions

View File

@ -301,6 +301,15 @@ local plugins = {
end,
cmd = "ToggleTerm",
opts = {
size = function(term)
if term.direction == "horizontal" then
return vim.o.lines * 0.35
elseif term.direction == "vertical" then
return vim.o.columns * 0.35
else
return 20
end
end,
open_mapping = false,
float_opts = {
border = "curved",