aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/lua-guide.txt
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2023-06-27 10:21:27 -0700
committerGitHub <noreply@github.com>2023-06-27 10:21:27 -0700
commitab65a98adba4d32b03e7296529c4bf1491c783eb (patch)
tree548059cb92e40862d3069710e9ae1b3814c504ee /runtime/doc/lua-guide.txt
parent929e4865d1f59cb356f3f2f8a10ad6095b435544 (diff)
downloadrneovim-ab65a98adba4d32b03e7296529c4bf1491c783eb.tar.gz
rneovim-ab65a98adba4d32b03e7296529c4bf1491c783eb.tar.bz2
rneovim-ab65a98adba4d32b03e7296529c4bf1491c783eb.zip
fix(docs): ignore_invalid #24174
Regex bug in scripts/gen_help_html.lua:ignore_invalid()
Diffstat (limited to 'runtime/doc/lua-guide.txt')
-rw-r--r--runtime/doc/lua-guide.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/doc/lua-guide.txt b/runtime/doc/lua-guide.txt
index af7f22304d..b138de85c9 100644
--- a/runtime/doc/lua-guide.txt
+++ b/runtime/doc/lua-guide.txt
@@ -30,7 +30,7 @@ The purpose of this guide is to introduce the different ways of interacting
with Nvim through Lua (the "API"). This API consists of three different
layers:
-1. The "Vim API" inherited from Vim: |ex-commands| and |builtin-functions| as
+1. The "Vim API" inherited from Vim: |Ex-commands| and |builtin-functions| as
well as |user-function|s in Vimscript. These are accessed through |vim.cmd()|
and |vim.fn| respectively, which are discussed under |lua-guide-vimscript|
below.
@@ -80,7 +80,7 @@ exactly like for a Vimscript file:
:source ~/programs/baz/myluafile.lua
<
Finally, you can include Lua code in a Vimscript file by putting it inside a
-|lua-heredoc| block:
+|:lua-heredoc| block:
>vim
lua << EOF
local tbl = {1, 2, 3}
@@ -199,8 +199,8 @@ this allows you to pass multiple commands to a single call of |vim.cmd()|:
highlight link Warning Error
]])
<
-This is the converse of |lua-heredoc| and allows you to include Vimscript code in
-your `init.lua`.
+This is the converse of |:lua-heredoc| and allows you to include Vimscript
+code in your `init.lua`.
If you want to build your Vim command programmatically, the following form can
be useful (all these are equivalent to the corresponding line above):