Skip to content

Commit 13b7725

Browse files
Reverted the string overwrite and added a space to the autocomplete
1 parent b35504a commit 13b7725

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

lua/render-markdown/integ/source.lua

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,9 @@ function M.items(buf, row, col)
6161
local checkbox = config.checkbox
6262

6363
local list_prefix = get_list_prefix(buf, row)
64-
table.insert(
65-
items,
66-
M.item(list_prefix .. (checkbox.unchecked.raw or '[ ]'), checkbox.unchecked.icon, 'unchecked')
67-
)
64+
table.insert(items, M.item(list_prefix .. '[ ] ', checkbox.unchecked.icon, 'unchecked'))
6865

69-
table.insert(items, M.item(list_prefix .. (checkbox.checked.raw or '[x]'), checkbox.checked.icon, 'checked'))
66+
table.insert(items, M.item(list_prefix .. '[x] ', checkbox.checked.icon, 'checked'))
7067

7168
for name, component in pairs(checkbox.custom) do
7269
table.insert(items, M.item(component.raw, component.rendered, name))

lua/render-markdown/types.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
---@class (exact) render.md.CheckboxComponent
9696
---@field public icon string
9797
---@field public highlight string
98-
---@field public raw? string
9998
---@field public scope_highlight? string
10099

101100
---@class (exact) render.md.Checkbox: render.md.BaseComponent

0 commit comments

Comments
 (0)