aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/vim.lua
diff options
context:
space:
mode:
authorsmolck <46855713+smolck@users.noreply.github.com>2021-02-04 08:27:38 -0600
committerGitHub <noreply@github.com>2021-02-04 08:27:38 -0600
commit2d06538b5eb8513ad58a7d34eed8e38664627cd8 (patch)
tree8a7747a8835fbe287e6858ca61e92bdd8637bffe /src/nvim/lua/vim.lua
parente65d0e53b1234f9173831a8a34c4e64d5542b0cb (diff)
downloadrneovim-2d06538b5eb8513ad58a7d34eed8e38664627cd8.tar.gz
rneovim-2d06538b5eb8513ad58a7d34eed8e38664627cd8.tar.bz2
rneovim-2d06538b5eb8513ad58a7d34eed8e38664627cd8.zip
remove extra line, remove () in error
Diffstat (limited to 'src/nvim/lua/vim.lua')
-rw-r--r--src/nvim/lua/vim.lua3
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