diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-11-10 23:07:36 -0800 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-11-11 00:43:02 -0800 |
commit | f59e1f58a2ed24198fb1653edeffb6ab5ec2bbdb (patch) | |
tree | c726afd06175fbc516fc99e8f6f67ebc6ab185a4 /src/nvim/lua/vim.lua | |
parent | 7a3d3257db623e1fe7a9dee9944bdecedf615931 (diff) | |
download | rneovim-f59e1f58a2ed24198fb1653edeffb6ab5ec2bbdb.tar.gz rneovim-f59e1f58a2ed24198fb1653edeffb6ab5ec2bbdb.tar.bz2 rneovim-f59e1f58a2ed24198fb1653edeffb6ab5ec2bbdb.zip |
Lua: mark some functions as "private"
Problem: scripts/gen_vimdoc.py gets confused and tries to generate docs
for `fn_index` and `func`.
Solution: Rename them to be private.
Diffstat (limited to 'src/nvim/lua/vim.lua')
-rw-r--r-- | src/nvim/lua/vim.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/lua/vim.lua b/src/nvim/lua/vim.lua index 1ebdde99d5..2b4c5486c7 100644 --- a/src/nvim/lua/vim.lua +++ b/src/nvim/lua/vim.lua @@ -261,14 +261,14 @@ end -- vim.fn.{func}(...) -local function fn_index(t, key) - local function func(...) +local function _fn_index(t, key) + local function _fn(...) return vim.call(key, ...) end - t[key] = func - return func + t[key] = _fn + return _fn end -local fn = setmetatable({}, {__index=fn_index}) +local fn = setmetatable({}, {__index=_fn_index}) local module = { _update_package_paths = _update_package_paths, |