diff --git a/lua/custom/plugins.lua b/lua/custom/plugins.lua index 76f4e9d..318d3c1 100644 --- a/lua/custom/plugins.lua +++ b/lua/custom/plugins.lua @@ -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",