From c2514b6fb5601cf573c16a2b4673560b6510ba97 Mon Sep 17 00:00:00 2001 From: The_miro Date: Tue, 26 May 2026 13:39:04 +0200 Subject: [PATCH] fix(nvim): guarantee abook/calendar column is at least 80 cols wide Right column was derived as W - left_w, making it too narrow on smaller terminals. Now right_w = max(80, 45% of W) and left_w takes the rest. Co-Authored-By: Claude Sonnet 4.6 --- nvim/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvim/init.lua b/nvim/init.lua index 0dd8f9d..1f3732e 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -248,8 +248,8 @@ local function toggle_pim() -- full-screen: alot left, abook top-right, calendar bottom-right local H = vim.o.lines - 2 local W = vim.o.columns - local left_w = math.max(1, math.floor(W * 0.55)) - local right_w = math.max(1, W - left_w) + local right_w = math.max(80, math.floor(W * 0.45)) + local left_w = math.max(1, W - right_w) local top_h = math.max(1, math.floor(H / 2)) local bot_h = math.max(1, H - top_h)