diff options
author | Riley Bruins <ribru17@hotmail.com> | 2025-01-09 08:36:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-09 08:36:16 -0800 |
commit | 0c296ab22484b4c009d119908d1614a6c6d96b2c (patch) | |
tree | 45ca8593392c49a0b514df69f97b9617fc2c874b /runtime/doc/lua.txt | |
parent | 1e47aa677a24231ec771137dadc7c2b65be775b4 (diff) | |
download | rneovim-0c296ab22484b4c009d119908d1614a6c6d96b2c.tar.gz rneovim-0c296ab22484b4c009d119908d1614a6c6d96b2c.tar.bz2 rneovim-0c296ab22484b4c009d119908d1614a6c6d96b2c.zip |
feat(docs): "yxx" runs Lua/Vimscript code examples #31904
`yxx` in Normal mode over a Lua or Vimscript code block section will execute the code.
Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
Diffstat (limited to 'runtime/doc/lua.txt')
-rw-r--r-- | runtime/doc/lua.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index 6547a76f56..6386240f07 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -161,7 +161,7 @@ languages like Python and C#. Example: >lua local func_with_opts = function(opts) local will_do_foo = opts.foo local filename = opts.filename - ... + -- ... end func_with_opts { foo = true, filename = "hello.world" } @@ -2428,7 +2428,7 @@ vim.validate({name}, {value}, {validator}, {optional}, {message}) function vim.startswith(s, prefix) vim.validate('s', s, 'string') vim.validate('prefix', prefix, 'string') - ... + -- ... end < 2. `vim.validate(spec)` (deprecated) where `spec` is of type @@ -2442,7 +2442,7 @@ vim.validate({name}, {value}, {validator}, {optional}, {message}) age={age, 'number'}, hobbies={hobbies, 'table'}, } - ... + -- ... end < |