diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2021-08-11 13:47:33 +0100 |
---|---|---|
committer | Sean Dewar <seandewar@users.noreply.github.com> | 2021-08-13 01:11:36 +0100 |
commit | b2994e35c9357a8144beaf27e1a8ea4dd133f5d4 (patch) | |
tree | 8c8f5b17fc75ae51c55aae8d247462e49426678c /runtime | |
parent | da9005af792f7a7eaae98ee9f6499af9a97fd095 (diff) | |
download | rneovim-b2994e35c9357a8144beaf27e1a8ea4dd133f5d4.tar.gz rneovim-b2994e35c9357a8144beaf27e1a8ea4dd133f5d4.tar.bz2 rneovim-b2994e35c9357a8144beaf27e1a8ea4dd133f5d4.zip |
feat(v:lua): support calling v:lua as a method
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/lua.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index fd1bedd8ef..1bbfde1980 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -391,6 +391,10 @@ where the args are converted to Lua values. The expression > is equivalent to the Lua chunk > return somemod.func(...) +The `v:lua` prefix may be used to call Lua functions as |method|s. For +example: > + arg1->v:lua.somemod.func(arg2) + You can use `v:lua` in "func" options like 'tagfunc', 'omnifunc', etc. For example consider the following Lua omnifunc handler: > |