misc.lua 298 B

1234567891011121314151617
  1. ---@meta
  2. -- luacheck: no unused args
  3. --- Invokes |vim-function| or |user-function| {func} with arguments {...}.
  4. --- See also |vim.fn|.
  5. --- Equivalent to:
  6. ---
  7. --- ```lua
  8. --- vim.fn[func]({...})
  9. --- ```
  10. ---
  11. --- @param func string
  12. --- @param ... any
  13. --- @return any
  14. function vim.call(func, ...) end