term consistent sizes
This commit is contained in:
parent
bdee9169cf
commit
93eb1ca84c
|
@ -301,6 +301,15 @@ local plugins = {
|
||||||
end,
|
end,
|
||||||
cmd = "ToggleTerm",
|
cmd = "ToggleTerm",
|
||||||
opts = {
|
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,
|
open_mapping = false,
|
||||||
float_opts = {
|
float_opts = {
|
||||||
border = "curved",
|
border = "curved",
|
||||||
|
|
Loading…
Reference in New Issue