aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2023-01-06 22:07:34 -0500
committerGitHub <noreply@github.com>2023-01-06 22:07:34 -0500
commit42afa0369a3c01dddd1efef1397bbf46011f391b (patch)
tree44196a84757ee1130827451635e4a5090e7fc8b0 /runtime
parent1c6be5e5e67407d56001826999351806ae655fe5 (diff)
parente17430c1cd97db5624e27515a4f5da17f9d926d6 (diff)
downloadrneovim-42afa0369a3c01dddd1efef1397bbf46011f391b.tar.gz
rneovim-42afa0369a3c01dddd1efef1397bbf46011f391b.tar.bz2
rneovim-42afa0369a3c01dddd1efef1397bbf46011f391b.zip
Merge #21663 lua: "nvim -l" scriptname in _G.arg[0]
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/starting.txt12
1 files changed, 5 insertions, 7 deletions
diff --git a/runtime/doc/starting.txt b/runtime/doc/starting.txt
index fa9e23eb00..179bacdb24 100644
--- a/runtime/doc/starting.txt
+++ b/runtime/doc/starting.txt
@@ -218,15 +218,13 @@ argument.
-l {script} [args]
Executes Lua {script} non-interactively (no UI) with optional
[args] after processing any preceding Nvim |cli-arguments|,
- then exits. See |-S| to run multiple Lua scripts without args,
- or in an interactive session.
+ then exits. Exits 1 on Lua error. See |-S| to run multiple Lua
+ scripts without args, with a UI.
*lua-args*
- All [args] are treated as {script} arguments and passed
- literally to Lua (in the conventional `_G.arg` global table),
- thus "-l" ends processing of Nvim arguments.
+ All [args] are treated as {script} arguments and stored in the
+ Lua `_G.arg` global table, thus "-l" ends processing of Nvim
+ arguments. The {script} name is stored at `_G.arg[0]`.
- Exits with code 1 on Lua error.
-
Sets 'verbose' to 1 (like "-V1"), so Lua `print()` writes to
output.