fix(api): add lhs option for keymap deletion

This commit is contained in:
Barrett Ruth
2026-07-25 10:26:01 -07:00
parent 1facf1e081
commit 22d44ef875
13 changed files with 120 additions and 31 deletions

View File

@@ -333,9 +333,11 @@ function vim.api.nvim_buf_del_extmark(buf, ns_id, id) end
---
--- @see vim.api.nvim_del_keymap
--- @param buf integer Buffer id, or 0 for current buffer
--- @param mode string
--- @param lhs string
function vim.api.nvim_buf_del_keymap(buf, mode, lhs) end
--- @param mode string Mode short-name ("n", "i", "v", ...)
--- @param lhs string Left-hand-side `{lhs}` of the mapping.
--- @param opts vim.api.keyset.keymap_del? Optional parameters.
--- - lhs: When true, only match {lhs}, not {rhs}.
function vim.api.nvim_buf_del_keymap(buf, mode, lhs, opts) end
--- Deletes a named mark in the buffer. See `mark-motions`.
---
@@ -1069,9 +1071,11 @@ function vim.api.nvim_del_current_line() end
--- To unmap a buffer-local mapping, use `nvim_buf_del_keymap()`.
---
--- @see vim.api.nvim_set_keymap
--- @param mode string
--- @param lhs string
function vim.api.nvim_del_keymap(mode, lhs) end
--- @param mode string Mode short-name ("n", "i", "v", ...)
--- @param lhs string Left-hand-side `{lhs}` of the mapping.
--- @param opts vim.api.keyset.keymap_del? Optional parameters.
--- - lhs: When true, only match {lhs}, not {rhs}.
function vim.api.nvim_del_keymap(mode, lhs, opts) end
--- Deletes an uppercase/file named mark. See `mark-motions`.
---