Merge pull request #1 from renerocksai/main

Fix calendar
This commit is contained in:
Adriano Correa
2022-07-15 09:23:25 -03:00
committed by GitHub

View File

@@ -2626,7 +2626,11 @@ local function ShowCalendar(opts)
if opts.vertical_resize then if opts.vertical_resize then
vim.cmd("vertical resize +" .. opts.vertical_resize) vim.cmd("vertical resize +" .. opts.vertical_resize)
end end
vim.cmd("set signcolumn=no") vim.cmd([[
set signcolumn=no
set nonumber
set norelativenumber
]])
end end
-- set up calendar integration: forward to our lua functions -- set up calendar integration: forward to our lua functions
@@ -2658,7 +2662,6 @@ local function SetupCalendar(opts)
let g:calendar_action = 'MyCalAction' let g:calendar_action = 'MyCalAction'
" let g:calendar_begin = 'MyCalBegin' " let g:calendar_begin = 'MyCalBegin'
let g:calendar_monday = {{calendar_monday}}
let g:calendar_mark = '{{calendar_mark}}' let g:calendar_mark = '{{calendar_mark}}'
let g:calendar_weeknm = {{weeknm}} let g:calendar_weeknm = {{weeknm}}
]] ]]
@@ -2667,6 +2670,9 @@ local function SetupCalendar(opts)
cmd = cmd:gsub("{{" .. k .. "}}", v) cmd = cmd:gsub("{{" .. k .. "}}", v)
end end
vim.cmd(cmd) vim.cmd(cmd)
if opts.calendar_monday == 1 then
vim.cmd("let g:calendar_monday = 1")
end
end end
local function ToggleTodo(opts) local function ToggleTodo(opts)