Merge pull request #123 from ernie/observe-calendar-monday

Observe calendar monday option correctly
This commit is contained in:
Rene Schallner
2022-07-14 01:47:17 +02:00
committed by GitHub

View File

@@ -2687,7 +2687,6 @@ local function SetupCalendar(opts)
let g:calendar_action = 'MyCalAction'
" let g:calendar_begin = 'MyCalBegin'
let g:calendar_monday = {{calendar_monday}}
let g:calendar_mark = '{{calendar_mark}}'
let g:calendar_weeknm = {{weeknm}}
]]
@@ -2696,6 +2695,9 @@ local function SetupCalendar(opts)
cmd = cmd:gsub("{{" .. k .. "}}", v)
end
vim.cmd(cmd)
if opts.calendar_monday == 1 then
vim.cmd("let g:calendar_monday = 1")
end
end
local function ToggleTodo(opts)