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 <noreply@anthropic.com>main
parent
dc11cc007d
commit
f25b761f3d
|
|
@ -64,8 +64,6 @@ vim.g.airline_section_x = "IP:" .. ipaddr .. " DNS:" .. hostname
|
||||||
vim.g.loaded_ruby_provider = 0
|
vim.g.loaded_ruby_provider = 0
|
||||||
vim.g.loaded_perl_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 ────────────────────────────────────────────────────────────
|
-- ── Editor options ────────────────────────────────────────────────────────────
|
||||||
vim.cmd("filetype plugin indent on")
|
vim.cmd("filetype plugin indent on")
|
||||||
|
|
@ -234,7 +232,7 @@ local function toggle_solo(key, cmd, label)
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.keymap.set("n", "n", function() toggle_solo("n", "terminal alot", "alot") end, { silent = true })
|
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 })
|
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,
|
-- 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
|
if not ok then _pim_scratch("abook", err) end
|
||||||
|
|
||||||
local w3 = _pim_float(top_h, left_w, bot_h, right_w)
|
local w3 = _pim_float(top_h, left_w, bot_h, right_w)
|
||||||
ok, err = pcall(vim.cmd, "Calendar -position=here")
|
ok, err = pcall(vim.cmd, "terminal khal interactive")
|
||||||
if not ok then _pim_scratch("calendar.vim", err) end
|
if not ok then _pim_scratch("khal", err) end
|
||||||
|
|
||||||
_pim_wins = { w1, w2, w3 }
|
_pim_wins = { w1, w2, w3 }
|
||||||
vim.api.nvim_set_current_win(w1)
|
vim.api.nvim_set_current_win(w1)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue