Skip to content

Commit 35119c1

Browse files
chore: resolve todos around 0.11 type definition changes
1 parent b963ce8 commit 35119c1

File tree

6 files changed

+4
-14
lines changed

6 files changed

+4
-14
lines changed

benches/medium_spec.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('medium.md', function()
88
util.less_than(util.setup('temp/medium.md'), 35)
99
util.num_marks(base_marks)
1010

11-
util.less_than(util.move_down(3), 0.5)
11+
util.less_than(util.move_down(3), 20)
1212
util.num_marks(base_marks + 2)
1313

1414
util.less_than(util.insert_mode(), 20)

benches/medium_table_spec.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('medium-table.md', function()
88
util.less_than(util.setup('temp/medium-table.md'), 120)
99
util.num_marks(base_marks)
1010

11-
util.less_than(util.move_down(1), 0.5)
11+
util.less_than(util.move_down(1), 20)
1212
util.num_marks(base_marks + 2)
1313

1414
util.less_than(util.insert_mode(), 25)

benches/readme_spec.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('README.md', function()
88
util.less_than(util.setup('README.md'), 60)
99
util.num_marks(base_marks)
1010

11-
util.less_than(util.move_down(1), 0.5)
11+
util.less_than(util.move_down(1), 20)
1212
util.num_marks(base_marks + 2)
1313

1414
util.less_than(util.insert_mode(), 20)

lua/render-markdown/colors.lua

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,7 @@ function M.combine(foreground, background, force)
9494
vim.api.nvim_set_hl(0, name, {
9595
fg = fg.fg,
9696
bg = bg.bg,
97-
-- TODO(0.11): remove
98-
---@diagnostic disable-next-line: undefined-field
9997
ctermfg = fg.ctermfg,
100-
-- TODO(0.11): remove
101-
---@diagnostic disable-next-line: undefined-field
10298
ctermbg = bg.ctermbg,
10399
})
104100
Cache.combine[name] = { fg = foreground, bg = background }
@@ -115,8 +111,6 @@ function M.bg_to_fg(highlight, force)
115111
local hl = M.get_hl(highlight)
116112
vim.api.nvim_set_hl(0, name, {
117113
fg = hl.bg,
118-
-- TODO(0.11): remove
119-
---@diagnostic disable-next-line: undefined-field
120114
ctermfg = hl.ctermbg,
121115
})
122116
Cache.bg_to_fg[name] = { hl = highlight }
@@ -126,9 +120,8 @@ end
126120

127121
---@private
128122
---@param name string
129-
---@return vim.api.keyset.hl_info
123+
---@return vim.api.keyset.get_hl_info
130124
function M.get_hl(name)
131-
-- TODO(0.11): return vim.api.keyset.get_hl_info
132125
return vim.api.nvim_get_hl(0, { name = name, link = false })
133126
end
134127

lua/render-markdown/lib/list.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ function Marks:validate(opts)
9292
if opts.virt_text_repeat_linebreak ~= nil and not Env.has_10 then
9393
return false, 'virt_text_repeat_linebreak', '0.10.0'
9494
end
95-
-- TODO(0.11): remove
96-
---@diagnostic disable-next-line: undefined-field
9795
if opts.conceal_lines ~= nil and not Env.has_11 then
9896
return false, 'conceal_lines', '0.11.0'
9997
end

tests/minimal_init.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
---@return string
33
local function get_path(name)
44
local data_path = vim.fn.stdpath('data')
5-
assert(type(data_path) == 'string')
65
local plugin_path = vim.fs.find(name, { path = data_path })
76
assert(#plugin_path == 1)
87
return plugin_path[1]

0 commit comments

Comments
 (0)