diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2023-06-23 12:16:55 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2023-06-25 17:25:47 +0200 |
commit | 49a7585981cdf7403e76a614558e602a98e64301 (patch) | |
tree | ec96c69f44cf0588e5a409fd9aea31662ad5abbe /runtime/doc/lua-guide.txt | |
parent | 036da0d07921e67090d1a62c9a4e382ca09d8584 (diff) | |
download | rneovim-49a7585981cdf7403e76a614558e602a98e64301.tar.gz rneovim-49a7585981cdf7403e76a614558e602a98e64301.tar.bz2 rneovim-49a7585981cdf7403e76a614558e602a98e64301.zip |
docs: autocmds, misc
Diffstat (limited to 'runtime/doc/lua-guide.txt')
-rw-r--r-- | runtime/doc/lua-guide.txt | 4 |
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 |