add note about `s:` variables in `nvim_exec`

fix #85
pull/86/head
Timothée Sterle 3 years ago
parent 2f27c94879
commit 7e052bfc61
No known key found for this signature in database
GPG Key ID: 136D558122196ED5

@ -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.

@ -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

Loading…
Cancel
Save