-
Notifications
You must be signed in to change notification settings - Fork 8
/
ops.lua
130 lines (128 loc) · 2.02 KB
/
ops.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
local M = {}
function M.get_ops(options)
options = options or {}
local C = require("kanban.theme.colors")
local ops = {
move_position = "top", -- top or bottom
add_position = "bottom", -- top or bottom
layout = {
x_margin = 5,
y_margin = 3,
list_x_margin = 2,
task_y_margin = 2,
task_height = 3,
uncomplete_border = {"╭", "─", "╮", "│", "╯", "─", "╰", "│"},
complete_border = {"✔", "─", "╮", "│", "╯", "─", "╰", "│"}
},
markdown = {
description_folder = "./tasks/", -- "./"
list_head = "## ",
due_head = "@",
due_style = "{<due>}",
tag_head = "#",
tag_style = "<tag>",
header = {
"---",
"",
"kanban-plugin: basic",
"",
"---",
"",
},
footer = {
"",
"",
"%% kanban:settings",
"```",
'{"kanban-plugin":"basic"}',
"```",
"%%",
},
},
hl = {
{
name = "KanbanFloat",
ops = {},
},
{
name = "ListFloat",
ops = {},
},
{
name = "TaskFloat", -- list border
ops = {},
},
{
name = "TaskFloatCompleted", -- card border
fg = C.grey_1,
ctermfg = 4,
ops = {},
},
{
name = "KanbanTitle",
ops = {
bold = true,
},
},
{
name = "ListTitle",
ops = {
bold = true,
},
},
{
name = "TaskCompleted",
ops = {
fg = C.grey_1,
ctermfg = 240,
bold = false,
},
},
{
name = "TaskTitle",
ops = {
bold = true,
},
},
{
name = "TaskDue",
ops = {
fg = C.blue_4,
ctermfg = 25,
},
},
{
name = "TaskDueToday",
ops = {
bg = C.blue_3,
ctermbg = 67,
},
},
{
name = "TaskDueDead",
ops = {
bg = C.lock,
ctermbg = 226,
},
},
{
name = "TaskDueSoon",
ops = {
fg = C.blue_4,
ctermfg = 25,
bold = true,
},
},
{
name = "TaskTag",
ops = {
fg = C.gold,
ctermfg = 221,
},
},
},
}
ops = require("kanban.utils").tableMerge(ops, options)
return ops
end
return M