fix(filetype): report documented parameter name #41649

Problem:
Invalid `args` parameter for `vim.filetype.match()` reports wrong
parameter name `"arg"`.

Solution:
Report correct parameter name `"args"` instead.
This commit is contained in:
Volodymyr Chernetskyi authored and GitHub committed 2026-09-03 04:10:05 -04:00
1 parent 9a8966879a
commit 9222ed3a4a
1 file changed
+1 -1
+1 -1
View File
@@ -3255,7 +3255,7 @@ end
--- (i.e., ".conf"), which indicates the filetype should be set with
--- `:setf FALLBACK conf`. See |:setfiletype|.
function M.match(args)
vim.validate('arg', args, 'table')
vim.validate('args', args, 'table')
if not (args.buf or args.filename or args.contents) then
error('At least one of "buf", "filename", or "contents" must be given')