Skip to content

Commit 64969bc

Browse files
Update healthcheck to use tbl_contains instead of list_contains
1 parent c669e07 commit 64969bc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
*.cast
12
large.md
23
test.md
3-
*.cast
4+
test.log

lua/render-markdown/health.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function M.check_keys(t1, t2, path)
8585
table.insert(errors, string.format('Invalid type: %s, expected %s, found %s', key, type(v1), type(v2)))
8686
elseif type(v1) == 'table' and type(v2) == 'table' then
8787
-- Some tables are meant to have unrestricted keys
88-
if not vim.list_contains({ 'win_options', 'custom_handlers' }, k) then
88+
if not vim.tbl_contains({ 'win_options', 'custom_handlers' }, k) then
8989
vim.list_extend(errors, M.check_keys(v1, v2, key_path))
9090
end
9191
end

0 commit comments

Comments
 (0)