@@ -6,6 +6,7 @@ async_tests.describe('callout.md', function()
6
6
util .setup (' demo/callout.md' )
7
7
8
8
local expected = {}
9
+ local quote = ' ▋'
9
10
10
11
local note_start = 0
11
12
vim .list_extend (expected , {
@@ -22,7 +23,7 @@ async_tests.describe('callout.md', function()
22
23
{
23
24
row = { note_start + 2 , note_start + 2 },
24
25
col = { 0 , 2 },
25
- virt_text = { { ' ┃ ' , ' DiagnosticInfo' } },
26
+ virt_text = { { quote .. ' ' , ' DiagnosticInfo' } },
26
27
virt_text_pos = ' overlay' ,
27
28
},
28
29
-- Callout text
@@ -36,25 +37,25 @@ async_tests.describe('callout.md', function()
36
37
{
37
38
row = { note_start + 3 , note_start + 3 },
38
39
col = { 0 , 1 },
39
- virt_text = { { ' ┃ ' , ' DiagnosticInfo' } },
40
+ virt_text = { { quote , ' DiagnosticInfo' } },
40
41
virt_text_pos = ' overlay' ,
41
42
},
42
43
{
43
44
row = { note_start + 4 , note_start + 4 },
44
45
col = { 0 , 2 },
45
- virt_text = { { ' ┃ ' , ' DiagnosticInfo' } },
46
+ virt_text = { { quote .. ' ' , ' DiagnosticInfo' } },
46
47
virt_text_pos = ' overlay' ,
47
48
},
48
49
{
49
50
row = { note_start + 5 , note_start + 5 },
50
51
col = { 0 , 1 },
51
- virt_text = { { ' ┃ ' , ' DiagnosticInfo' } },
52
+ virt_text = { { quote , ' DiagnosticInfo' } },
52
53
virt_text_pos = ' overlay' ,
53
54
},
54
55
{
55
56
row = { note_start + 6 , note_start + 6 },
56
57
col = { 0 , 2 },
57
- virt_text = { { ' ┃ ' , ' DiagnosticInfo' } },
58
+ virt_text = { { quote .. ' ' , ' DiagnosticInfo' } },
58
59
virt_text_pos = ' overlay' ,
59
60
},
60
61
})
@@ -74,7 +75,7 @@ async_tests.describe('callout.md', function()
74
75
{
75
76
row = { tip_start + 2 , tip_start + 2 },
76
77
col = { 0 , 2 },
77
- virt_text = { { ' ┃ ' , ' DiagnosticOk' } },
78
+ virt_text = { { quote .. ' ' , ' DiagnosticOk' } },
78
79
virt_text_pos = ' overlay' ,
79
80
},
80
81
-- Callout text
@@ -88,7 +89,7 @@ async_tests.describe('callout.md', function()
88
89
{
89
90
row = { tip_start + 3 , tip_start + 3 },
90
91
col = { 0 , 2 },
91
- virt_text = { { ' ┃ ' , ' DiagnosticOk' } },
92
+ virt_text = { { quote .. ' ' , ' DiagnosticOk' } },
92
93
virt_text_pos = ' overlay' ,
93
94
},
94
95
})
@@ -108,7 +109,7 @@ async_tests.describe('callout.md', function()
108
109
{
109
110
row = { important_start + 2 , important_start + 2 },
110
111
col = { 0 , 2 },
111
- virt_text = { { ' ┃ ' , ' DiagnosticHint' } },
112
+ virt_text = { { quote .. ' ' , ' DiagnosticHint' } },
112
113
virt_text_pos = ' overlay' ,
113
114
},
114
115
-- Callout text
@@ -122,7 +123,7 @@ async_tests.describe('callout.md', function()
122
123
{
123
124
row = { important_start + 3 , important_start + 3 },
124
125
col = { 0 , 2 },
125
- virt_text = { { ' ┃ ' , ' DiagnosticHint' } },
126
+ virt_text = { { quote .. ' ' , ' DiagnosticHint' } },
126
127
virt_text_pos = ' overlay' ,
127
128
},
128
129
})
@@ -142,7 +143,7 @@ async_tests.describe('callout.md', function()
142
143
{
143
144
row = { warning_start + 2 , warning_start + 2 },
144
145
col = { 0 , 2 },
145
- virt_text = { { ' ┃ ' , ' DiagnosticWarn' } },
146
+ virt_text = { { quote .. ' ' , ' DiagnosticWarn' } },
146
147
virt_text_pos = ' overlay' ,
147
148
},
148
149
-- Callout text
@@ -156,7 +157,7 @@ async_tests.describe('callout.md', function()
156
157
{
157
158
row = { warning_start + 3 , warning_start + 3 },
158
159
col = { 0 , 2 },
159
- virt_text = { { ' ┃ ' , ' DiagnosticWarn' } },
160
+ virt_text = { { quote .. ' ' , ' DiagnosticWarn' } },
160
161
virt_text_pos = ' overlay' ,
161
162
},
162
163
})
@@ -176,7 +177,7 @@ async_tests.describe('callout.md', function()
176
177
{
177
178
row = { caution_start + 2 , caution_start + 2 },
178
179
col = { 0 , 2 },
179
- virt_text = { { ' ┃ ' , ' DiagnosticError' } },
180
+ virt_text = { { quote .. ' ' , ' DiagnosticError' } },
180
181
virt_text_pos = ' overlay' ,
181
182
},
182
183
-- Callout text
@@ -190,7 +191,7 @@ async_tests.describe('callout.md', function()
190
191
{
191
192
row = { caution_start + 3 , caution_start + 3 },
192
193
col = { 0 , 2 },
193
- virt_text = { { ' ┃ ' , ' DiagnosticError' } },
194
+ virt_text = { { quote .. ' ' , ' DiagnosticError' } },
194
195
virt_text_pos = ' overlay' ,
195
196
},
196
197
})
0 commit comments