diff options
Diffstat (limited to 'src/nvim/lua/vim.lua')
-rw-r--r-- | src/nvim/lua/vim.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/lua/vim.lua b/src/nvim/lua/vim.lua index e154404836..da6c2c4678 100644 --- a/src/nvim/lua/vim.lua +++ b/src/nvim/lua/vim.lua @@ -256,14 +256,13 @@ vim.fn = setmetatable({}, { local _fn if vim.api[key] ~= nil then _fn = function(...) - error(string.format("Tried to call API function with vim.fn: use vim.api.%s() instead", key)) + error(string.format("Tried to call API function with vim.fn: use vim.api.%s instead", key)) end else _fn = function(...) return vim.call(key, ...) end end - t[key] = _fn return _fn end |