ci: format
This commit is contained in:
parent
cd96a269a4
commit
e182cc67a2
3 changed files with 22 additions and 16 deletions
|
|
@ -82,12 +82,12 @@ local defaults = {
|
||||||
},
|
},
|
||||||
sync = {},
|
sync = {},
|
||||||
icons = {
|
icons = {
|
||||||
pending = '○',
|
pending = '○',
|
||||||
done = '✓',
|
done = '✓',
|
||||||
priority = '●',
|
priority = '●',
|
||||||
header = '▸',
|
header = '▸',
|
||||||
due = '·',
|
due = '·',
|
||||||
recur = '↺',
|
recur = '↺',
|
||||||
category = '#',
|
category = '#',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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 })
|
||||||
|
|
|
||||||
|
|
@ -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 = '+',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue