From 7e052bfc6192d06a8b2e14cb1d63fd433f78490e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Sterle?= Date: Mon, 8 Nov 2021 18:26:29 +0100 Subject: [PATCH] add note about `s:` variables in `nvim_exec` fix #85 --- README.md | 4 ++++ doc/nvim-lua-guide.txt | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/README.md b/README.md index a0dd384..77015c7 100644 --- a/README.md +++ b/README.md @@ -476,6 +476,10 @@ true) print(result) -- 'hello world' ``` +#### Caveats + +`nvim_exec` does not support script-local variables (`s:`) prior to Neovim 0.6.0 + ### vim.api.nvim_command() This function executes an ex command. It takes in a string containing the command to execute. diff --git a/doc/nvim-lua-guide.txt b/doc/nvim-lua-guide.txt index 6acf133..331d70e 100644 --- a/doc/nvim-lua-guide.txt +++ b/doc/nvim-lua-guide.txt @@ -585,6 +585,11 @@ store the output in a variable, for example). print(result) -- 'hello world' < +Caveats~ + +`nvim_exec` does not support script-local variables (`s:`) prior to +Neovim 0.6.0 + vim.api.nvim_command()~ This function executes an ex command. It takes in a string containing