ci: format

This commit is contained in:
Barrett Ruth 2026-02-26 19:17:58 -05:00
parent cd96a269a4
commit e182cc67a2
3 changed files with 22 additions and 16 deletions

View file

@ -82,12 +82,12 @@ local defaults = {
},
sync = {},
icons = {
pending = '',
done = '',
pending = '',
done = '',
priority = '',
header = '',
due = '·',
recur = '',
header = '',
due = '·',
recur = '',
category = '#',
},
}

View file

@ -5,12 +5,12 @@ vim.fn.mkdir(tmpdir, 'p')
vim.g.pending = {
data_path = tmpdir .. '/tasks.json',
icons = {
pending = '',
done = '',
pending = '',
done = '',
priority = '',
header = '',
due = '·',
recur = '',
header = '',
due = '·',
recur = '',
category = '#',
},
}
@ -22,7 +22,13 @@ local today = os.date('%Y-%m-%d')
local yesterday = os.date('%Y-%m-%d', os.time() - 86400)
local tomorrow = os.date('%Y-%m-%d', os.time() + 86400)
store.add({ description = 'Finish quarterly report', category = 'Work', due = tomorrow, recur = 'monthly', priority = 1 })
store.add({
description = 'Finish quarterly report',
category = 'Work',
due = tomorrow,
recur = 'monthly',
priority = 1,
})
store.add({ description = 'Review pull requests', category = 'Work' })
store.add({ description = 'Update deployment docs', category = 'Work', status = 'done' })
store.add({ description = 'Buy groceries', category = 'Personal', due = today })

View file

@ -37,12 +37,12 @@ describe('icons', function()
it('allows overriding all icons', function()
vim.g.pending = {
icons = {
pending = '-',
done = 'x',
pending = '-',
done = 'x',
priority = '!',
header = '>',
due = '@',
recur = '~',
header = '>',
due = '@',
recur = '~',
category = '+',
},
}