aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2021-08-11 13:47:33 +0100
committerSean Dewar <seandewar@users.noreply.github.com>2021-08-13 01:11:36 +0100
commitb2994e35c9357a8144beaf27e1a8ea4dd133f5d4 (patch)
tree8c8f5b17fc75ae51c55aae8d247462e49426678c /runtime
parentda9005af792f7a7eaae98ee9f6499af9a97fd095 (diff)
downloadrneovim-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.txt4
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: >