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 <noreply@anthropic.com>
main
Amir Alexander Abdelbaki 2026-05-26 12:06:21 +02:00
parent 47b94056ac
commit 890cb8819b
1 changed files with 2 additions and 2 deletions

View File

@ -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)