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 = {}, sync = {},
icons = { icons = {
pending = '', pending = '',
done = '', done = '',
priority = '', priority = '',
header = '', header = '',
due = '·', due = '·',
recur = '', recur = '',
category = '#', category = '#',
}, },
} }

View file

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

View file

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