From 14a95072dabd87799e68f47f174820fb14a00206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Sterle?= Date: Thu, 23 Jul 2020 12:58:03 +0200 Subject: [PATCH] Add comments to the v:lua section --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 2f4415e..b784bd0 100644 --- a/README.md +++ b/README.md @@ -217,6 +217,7 @@ let scream = v:lua.string.rep('A', 10) echo scream " 'AAAAAAAAAA' +" Requiring modules works call v:lua.require('mymodule').myfunction() " How about a nice statusline? @@ -263,8 +264,13 @@ See also: This variable can only be used to call functions. The following will always throw an error: ```vim +" Aliasing functions doesn't work let LuaPrint = v:lua.print + +" Accessing dictionaries doesn't work echo v:lua.some_global_dict['key'] + +" Using a function as a value doesn't work echo map([1, 2, 3], v:lua.global_callback) ```