diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2023-06-25 09:17:47 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-25 09:17:47 -0700 |
| commit | 5ceb2238d3685255cd517ca87fd7edae9ed88811 (patch) | |
| tree | 5972cd240cb18d50a7d56b3b5e0c1019c947e07a /runtime/doc/lua.txt | |
| parent | e59cf3b3a9ee0f9e9b4d2e01059dbdf185eb5685 (diff) | |
| parent | 49a7585981cdf7403e76a614558e602a98e64301 (diff) | |
| download | rneovim-5ceb2238d3685255cd517ca87fd7edae9ed88811.tar.gz rneovim-5ceb2238d3685255cd517ca87fd7edae9ed88811.tar.bz2 rneovim-5ceb2238d3685255cd517ca87fd7edae9ed88811.zip | |
Merge #24116 from justinmk/doc
Diffstat (limited to 'runtime/doc/lua.txt')
| -rw-r--r-- | runtime/doc/lua.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index c3eaf1ae39..822ce4e85a 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -14,7 +14,7 @@ INTRODUCTION *lua-intro* The Lua 5.1 script engine is builtin and always available. Try this command to get an idea of what lurks beneath: >vim - :lua print(vim.inspect(package.loaded)) + :lua vim.print(package.loaded) Nvim includes a "standard library" |lua-stdlib| for Lua. It complements the "editor stdlib" (|builtin-functions| and |Ex-commands|) and the |API|, all of @@ -423,7 +423,7 @@ is unnecessary. You can peek at the module properties: >vim - :lua print(vim.inspect(vim)) + :lua vim.print(vim) Result is something like this: > @@ -1414,6 +1414,7 @@ inspect({object}, {options}) *vim.inspect()* Gets a human-readable representation of the given object. See also: ~ + • |vim.print()| • https://github.com/kikito/inspect.lua • https://github.com/mpeterv/vinspect @@ -1538,6 +1539,7 @@ print({...}) *vim.print()* See also: ~ • |vim.inspect()| + • |:=| region({bufnr}, {pos1}, {pos2}, {regtype}, {inclusive}) *vim.region()* Get a table of lines with start, end columns for a region marked by two @@ -3172,7 +3174,7 @@ Iter:find({self}, {f}) *Iter:find()* any Iter:fold({self}, {init}, {f}) *Iter:fold()* - Fold an iterator or table into a single value. + Fold ("reduce") an iterator or table into a single value. Examples: >lua |