aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/vim.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-11-30 09:28:50 +0100
committerGitHub <noreply@github.com>2021-11-30 09:28:50 +0100
commitf5fb79733e30b6444e9637e9a1aa4bfcb2050ab5 (patch)
tree5800b5c5c129fa2aacc5be1a74659b1631a4559e /src/nvim/lua/vim.lua
parentfff8827908494a9c4bd5de10c409189929b3db56 (diff)
parentd0fbbea62ae35928efcabb224932bb990d7cab29 (diff)
downloadrneovim-f5fb79733e30b6444e9637e9a1aa4bfcb2050ab5.tar.gz
rneovim-f5fb79733e30b6444e9637e9a1aa4bfcb2050ab5.tar.bz2
rneovim-f5fb79733e30b6444e9637e9a1aa4bfcb2050ab5.zip
Merge pull request #16460 from dundargoc/chore/typos
chore: fix typos
Diffstat (limited to 'src/nvim/lua/vim.lua')
-rw-r--r--src/nvim/lua/vim.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/lua/vim.lua b/src/nvim/lua/vim.lua
index ad886b40dd..c1a1e7f162 100644
--- a/src/nvim/lua/vim.lua
+++ b/src/nvim/lua/vim.lua
@@ -454,7 +454,7 @@ local on_key_cbs = {}
--- On each key press, Nvim passes the key char to fn(). |i_CTRL-V|
--- If {fn} is nil, it removes the callback for the associated {ns_id}
---@param ns_id number? Namespace ID. If nil or 0, generates and returns a new
---- |nvim_create_namesapce()| id.
+--- |nvim_create_namespace()| id.
---
---@return number Namespace id associated with {fn}. Or count of all callbacks
---if on_key() is called without arguments.
@@ -580,6 +580,7 @@ function vim._expand_pat(pat, env)
end
local keys = {}
+ ---@private
local function insert_keys(obj)
for k,_ in pairs(obj) do
if type(k) == "string" and string.sub(k,1,string.len(match_part)) == match_part then