From 890cb8819bd8bb213b5f61798773cdaaa6a3cda7 Mon Sep 17 00:00:00 2001 From: The_miro Date: Tue, 26 May 2026 12:06:21 +0200 Subject: [PATCH] fix(nvim): pass -position=here to Calendar to open in current window calendar.vim defaults to tabnew, which escaped the floating window. -position=here makes it edit into the current buffer instead. 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 919ec39..c635292 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -215,7 +215,7 @@ local function toggle_solo(key, cmd, label) end vim.keymap.set("n", "n", function() toggle_solo("n", "terminal alot", "alot") end, { silent = true }) -vim.keymap.set("n", "g", function() toggle_solo("g", "Calendar", "calendar.vim") end, { silent = true }) +vim.keymap.set("n", "g", function() toggle_solo("g", "Calendar -position=here", "calendar.vim") end, { silent = true }) vim.keymap.set("n", "f", function() toggle_solo("f", "terminal abook", "abook") end, { silent = true }) -- r: sideward-T overlay — left column (bar of the T) with three stacked panes, @@ -242,7 +242,7 @@ local function toggle_pim() if not ok then _pim_scratch("alot", err) end local w2 = _pim_float(mail_h, 0, cal_h, col_w) - ok, err = pcall(vim.cmd, "Calendar") + ok, err = pcall(vim.cmd, "Calendar -position=here") if not ok then _pim_scratch("calendar.vim", err) end local w3 = _pim_float(mail_h + cal_h, 0, ab_h, col_w)