add note about nvim_call_function

pull/60/head
Timothée Sterle 3 years ago committed by Timothée Sterle
parent 9f9aea1c45
commit 1561654e0e

@ -724,6 +724,8 @@ vim.fn['my#autoload#function']()
The functionality of `vim.fn` is identical to `vim.call`, but allows a more Lua-like syntax.
It is distinct from `vim.api.nvim_call_function` in that converting Vim/Lua objects is automatic: `vim.api.nvim_call_function` returns a table for floating point numbers and does not accept Lua closures while `vim.fn` handles these types transparently.
See also:
- `:help vim.fn`

@ -881,6 +881,11 @@ Lua, so autoload functions have to be called with this syntax:
The functionality of `vim.fn` is identical to `vim.call`, but allows a
more Lua-like syntax.
It is distinct from `vim.api.nvim_call_function` in that converting
Vim/Lua objects is automatic: `vim.api.nvim_call_function` returns a
table for floating point numbers and does not accept Lua closures while
`vim.fn` handles these types transparently.
See also:
- |vim.fn|

Loading…
Cancel
Save