aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/lua-guide.txt
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2023-06-25 09:17:47 -0700
committerGitHub <noreply@github.com>2023-06-25 09:17:47 -0700
commit5ceb2238d3685255cd517ca87fd7edae9ed88811 (patch)
tree5972cd240cb18d50a7d56b3b5e0c1019c947e07a /runtime/doc/lua-guide.txt
parente59cf3b3a9ee0f9e9b4d2e01059dbdf185eb5685 (diff)
parent49a7585981cdf7403e76a614558e602a98e64301 (diff)
downloadrneovim-5ceb2238d3685255cd517ca87fd7edae9ed88811.tar.gz
rneovim-5ceb2238d3685255cd517ca87fd7edae9ed88811.tar.bz2
rneovim-5ceb2238d3685255cd517ca87fd7edae9ed88811.zip
Merge #24116 from justinmk/doc
Diffstat (limited to 'runtime/doc/lua-guide.txt')
-rw-r--r--runtime/doc/lua-guide.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/lua-guide.txt b/runtime/doc/lua-guide.txt
index 22f51ce8c7..af7f22304d 100644
--- a/runtime/doc/lua-guide.txt
+++ b/runtime/doc/lua-guide.txt
@@ -218,7 +218,7 @@ Vimscript are automatically converted:
print(vim.fn.printf('Hello from %s', 'Lua'))
local reversed_list = vim.fn.reverse({ 'a', 'b', 'c' })
- print(vim.inspect(reversed_list)) -- { "c", "b", "a" }
+ vim.print(reversed_list) -- { "c", "b", "a" }
local function print_stdout(chan_id, data, name)
print(data[1])
@@ -261,7 +261,7 @@ Data types are converted automatically. For example:
key2 = 300
}
- print(vim.inspect(vim.g.some_global_variable))
+ vim.print(vim.g.some_global_variable)
--> { key1 = "value", key2 = 300 }
<
You can target specific buffers (via number), windows (via |window-ID|), or