From 93eb1ca84ce038dd6a8fa4deca8af27b7b0632a9 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sat, 20 Jan 2024 19:00:49 +0100 Subject: [PATCH] term consistent sizes --- lua/custom/plugins.lua | 9 +++++++++ 1 file changed, 9 insertions(+) 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",