mirror of
https://github.com/neovim/neovim.git
synced 2026-09-04 13:20:34 +00:00
fix(keymap): report the documented parameter name #41633
Problem: Invalid `modes` parameter for `vim.keymap.del()` reports wrong parameter name `"mode"`. Solution: Report correct parameter name `"mode"` instead.
This commit is contained in:
committed by
GitHub
parent
40258d5d05
commit
45b645718c
@@ -136,7 +136,7 @@ end
|
||||
---@param opts? vim.keymap.del.Opts
|
||||
---@see |vim.keymap.set()|
|
||||
function keymap.del(modes, lhs, opts)
|
||||
vim.validate('mode', modes, { 'string', 'table' })
|
||||
vim.validate('modes', modes, { 'string', 'table' })
|
||||
vim.validate('lhs', lhs, { 'string', 'table' })
|
||||
vim.validate('opts', opts, 'table', true)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user