Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

Commit

Permalink
add info about print() in Lua
Browse files Browse the repository at this point in the history
  • Loading branch information
nanotee committed Nov 27, 2020
1 parent 31e0b3e commit d644acd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -226,6 +226,8 @@ Note: each `:lua` command has its own scope and variables declared with the `loc
" prints 'nil' instead of '1'
```

Note 2: the `print()` function in Lua functions similarly to the `:echomsg` command. Its output is saved in the message-history and can be suppressed by the `:silent` command.

See also:

- `:help :lua`
Expand Down
4 changes: 4 additions & 0 deletions doc/nvim-lua-guide.txt
Expand Up @@ -225,6 +225,10 @@ won't work:
" prints 'nil' instead of '1'
<

Note 2: the `print()` function in Lua functions similarly to the
`:echomsg` command. Its output is saved in the message-history and can
be suppressed by the `:silent` command.

See also:

- |:lua|
Expand Down

0 comments on commit d644acd

Please sign in to comment.