aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorShadman <13149513+shadmansaleh@users.noreply.github.com>2022-01-07 00:42:31 +0600
committerGitHub <noreply@github.com>2022-01-06 11:42:31 -0700
commit287d3566de11f82aa86448998fd4703b1db328bd (patch)
tree9fd586e31fc9058f499a4247c1c0efe72a64f55d /runtime
parentd78e46679d2ff31916091f9368367ccc1539c299 (diff)
downloadrneovim-287d3566de11f82aa86448998fd4703b1db328bd.tar.gz
rneovim-287d3566de11f82aa86448998fd4703b1db328bd.tar.bz2
rneovim-287d3566de11f82aa86448998fd4703b1db328bd.zip
fix(lua): print multiple return values with =expr (#16933)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/lua.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
index d25ed4e3f1..80c1f58323 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -1329,6 +1329,18 @@ paste({lines}, {phase}) *vim.paste()*
See also: ~
|paste|
+pretty_print({...}) *vim.pretty_print()*
+ Prints given arguments in human-readable format. Example: >
+ -- Print highlight group Normal and store it's contents in a variable.
+ local hl_normal = vim.pretty_print(vim.api.nvim_get_hl_by_name("Normal", true))
+<
+
+ Return: ~
+ given arguments.
+
+ 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 points