mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
fix(lua): avoid recursive vim.on_key() callback (#30753)
This commit is contained in:
@ -658,6 +658,8 @@ local on_key_cbs = {} --- @type table<integer,function>
|
||||
--- and cannot be toggled dynamically.
|
||||
---
|
||||
---@note {fn} will be removed on error.
|
||||
---@note {fn} won't be invoked recursively, i.e. if {fn} itself consumes input,
|
||||
--- it won't be invoked for those keys.
|
||||
---@note {fn} will not be cleared by |nvim_buf_clear_namespace()|
|
||||
---
|
||||
---@param fn fun(key: string, typed: string)?
|
||||
|
Reference in New Issue
Block a user