From d8b82fd32d5cb980581654d04c3177eb1a7a225d Mon Sep 17 00:00:00 2001 From: Jackson Taylor Date: Thu, 8 Feb 2024 11:25:01 -0500 Subject: Add settings for calendar plugin --- after/plugin/calendar.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 after/plugin/calendar.lua diff --git a/after/plugin/calendar.lua b/after/plugin/calendar.lua new file mode 100644 index 0000000..ae68c23 --- /dev/null +++ b/after/plugin/calendar.lua @@ -0,0 +1,21 @@ +-- I thought it would. If I try to open today's journal, I would like to be able +-- to pick which vimwiki it's for, but it defaults to my personal one. This does not work how +-- I thought it would work, I thought this would force it to use the first in this list. +vim.g.calendar_diary_list = { + { + name = 'Work', + path = '$HOME/vimwiki/work/diary', + ext = '.md' + }, + { + name = 'Personal', + path = '$HOME/vimwiki/personal/diary', + ext = '.md' + }, +} + +-- Disable the mappings the calendar plugin already has. I have my own. +vim.g.calendar_no_mappings = 0 + +-- Shows the week numbers off to the side like: WK 1 +vim.g.calendar_weeknm = 2 -- cgit v1.2.3