diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2023-06-19 08:40:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-19 08:40:33 -0700 |
commit | 72a6643b1380cdf6f1153d70eeaffb90bdca30d6 (patch) | |
tree | 7e5246f253648b94ec87b51f94dcb6d093f0ac63 /runtime/doc/lua.txt | |
parent | 91f57723adaab2877d5a0183912fcc51491fe90f (diff) | |
download | rneovim-72a6643b1380cdf6f1153d70eeaffb90bdca30d6.tar.gz rneovim-72a6643b1380cdf6f1153d70eeaffb90bdca30d6.tar.bz2 rneovim-72a6643b1380cdf6f1153d70eeaffb90bdca30d6.zip |
docs #24061
- nvim requires rpc responses in reverse order. https://github.com/neovim/neovim/issues/19932
- NVIM_APPNAME: UIs normally should NOT set this.
ref #23520
fix #24050
fix #23660
fix #23353
fix #23337
fix #22213
fix #19161
fix #18088
fix #20693
Diffstat (limited to 'runtime/doc/lua.txt')
-rw-r--r-- | runtime/doc/lua.txt | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index a4890898a3..1110fb7fc3 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -1002,10 +1002,18 @@ Log levels are one of the values defined in `vim.log.levels`: ------------------------------------------------------------------------------ LUA-VIMSCRIPT BRIDGE *lua-vimscript* -Nvim Lua provides an interface to Vimscript variables and functions, and -editor commands and options. +Nvim Lua provides an interface or "bridge" to Vimscript variables and +functions, and editor commands and options. + +Objects passed over this bridge are COPIED (marshalled): there are no +"references". |lua-guide-variables| For example, using `vim.fn.remove()` on +a Lua list copies the list object to Vimscript and does NOT modify the Lua +list: >lua + + local list = { 1, 2, 3 } + vim.fn.remove(list, 0) + vim.print(list) --> "{ 1, 2, 3 }" -See also https://github.com/nanotee/nvim-lua-guide. vim.call({func}, {...}) *vim.call()* Invokes |vim-function| or |user-function| {func} with arguments {...}. |