mention v:lua.require function call syntax

pull/86/head
Timothée Sterle 3 years ago
parent 93343fc100
commit f06fd3dc2d
No known key found for this signature in database
GPG Key ID: 136D558122196ED5

@ -362,6 +362,9 @@ inoremap <silent> <expr> <Tab>
\ pumvisible() ? "\<C-n>" :
\ v:lua.check_back_space() ? "\<Tab>" :
\ completion#trigger_completion()
" Call a function from a Lua module by using single quotes and omitting parentheses:
call v:lua.require'module'.foo()
```
See also:

@ -441,6 +441,10 @@ types and vice versa.
\ pumvisible() ? "\<C-n>" :
\ v:lua.check_back_space() ? "\<Tab>" :
\ completion#trigger_completion()
" Call a function from a Lua module by using single quotes and
omitting parentheses:
call v:lua.require'module'.foo()
<
See also:

Loading…
Cancel
Save