diff options
author | smolck <46855713+smolck@users.noreply.github.com> | 2021-02-06 11:06:33 -0600 |
---|---|---|
committer | smolck <46855713+smolck@users.noreply.github.com> | 2021-02-06 11:06:33 -0600 |
commit | 4526294848e5289a1f67cdb6c7e6fe5327f340fb (patch) | |
tree | 586647741fe56cfecea2463509d4ba9057f5401c /src/nvim/lua/vim.lua | |
parent | ad1a437835dd78d668c2255892ee4dc3bfcebcfc (diff) | |
download | rneovim-4526294848e5289a1f67cdb6c7e6fe5327f340fb.tar.gz rneovim-4526294848e5289a1f67cdb6c7e6fe5327f340fb.tar.bz2 rneovim-4526294848e5289a1f67cdb6c7e6fe5327f340fb.zip |
Fix unused vararg
Diffstat (limited to 'src/nvim/lua/vim.lua')
-rw-r--r-- | src/nvim/lua/vim.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/lua/vim.lua b/src/nvim/lua/vim.lua index da6c2c4678..fd53bffe94 100644 --- a/src/nvim/lua/vim.lua +++ b/src/nvim/lua/vim.lua @@ -255,7 +255,7 @@ vim.fn = setmetatable({}, { __index = function(t, key) local _fn if vim.api[key] ~= nil then - _fn = function(...) + _fn = function() error(string.format("Tried to call API function with vim.fn: use vim.api.%s instead", key)) end else |