docs(lua): iInconsistent vim.keymap param name #37026

Problem: vim.keymap.del has 'modes' as it's first argument while vim.keymap.set
has 'mode' as it's first argument despite both 'mode' and 'modes' taking in the
same type input of String or String[].

Solution: Updated vim.keymap.set docs to refer to it's first argument
as 'modes'.
This commit is contained in:
Bryan Turns
2025-12-20 18:26:44 -06:00
committed by GitHub
parent 6228acb74f
commit bef68ba266
3 changed files with 22 additions and 22 deletions

View File

@@ -3042,7 +3042,7 @@ describe('vim.keymap', function()
it('validates', function()
matches(
'mode: expected string|table, got number',
'modes: expected string|table, got number',
pcall_err(exec_lua, [[vim.keymap.set(42, 'x', print)]])
)