From f25b761f3d317f5aaec37bfe93e69e9b9e0ef25f Mon Sep 17 00:00:00 2001 From: The_miro Date: Tue, 26 May 2026 14:26:17 +0200 Subject: [PATCH] fix(nvim): replace calendar.vim with khal interactive for event display calendar.vim hangs on Google token errors; khal interactive reads the same vdirsyncer ICS files directly and provides a working calendar+event TUI. Co-Authored-By: Claude Sonnet 4.6 --- nvim/init.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/nvim/init.lua b/nvim/init.lua index c79074b..49b2adf 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -64,8 +64,6 @@ vim.g.airline_section_x = "IP:" .. ipaddr .. " DNS:" .. hostname vim.g.loaded_ruby_provider = 0 vim.g.loaded_perl_provider = 0 --- calendar.vim: enable event loading (reads local cache populated by ics-to-calendarim) -vim.g.calendar_google_calendar = 1 -- ── Editor options ──────────────────────────────────────────────────────────── vim.cmd("filetype plugin indent on") @@ -234,7 +232,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 -position=here", "calendar.vim") end, { silent = true }) +vim.keymap.set("n", "g", function() toggle_solo("g", "terminal khal interactive", "khal") 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, @@ -265,8 +263,8 @@ local function toggle_pim() if not ok then _pim_scratch("abook", err) end local w3 = _pim_float(top_h, left_w, bot_h, right_w) - ok, err = pcall(vim.cmd, "Calendar -position=here") - if not ok then _pim_scratch("calendar.vim", err) end + ok, err = pcall(vim.cmd, "terminal khal interactive") + if not ok then _pim_scratch("khal", err) end _pim_wins = { w1, w2, w3 } vim.api.nvim_set_current_win(w1)