aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/lua-guide.txt
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-09-15 09:43:48 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-10-10 19:20:32 +0200
commitc3d21ad1bccd9a2975be73b1115213fd884eada3 (patch)
tree8c7144e6ddc18a6cf9c097f5516b6f9b74221112 /runtime/doc/lua-guide.txt
parentfd39f5ce8c9bbda1b77ff6c03553148fadac5d57 (diff)
downloadrneovim-c3d21ad1bccd9a2975be73b1115213fd884eada3.tar.gz
rneovim-c3d21ad1bccd9a2975be73b1115213fd884eada3.tar.bz2
rneovim-c3d21ad1bccd9a2975be73b1115213fd884eada3.zip
docs: small fixes
Co-authored-by: Wansmer <wansmer@gmail.com> Co-authored-by: Andrew Voynov <andrewvoynov.b@gmail.com> Co-authored-by: David Moberg <david.moberg@mediatek.com>
Diffstat (limited to 'runtime/doc/lua-guide.txt')
-rw-r--r--runtime/doc/lua-guide.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/doc/lua-guide.txt b/runtime/doc/lua-guide.txt
index e2fece916c..c15b1b0495 100644
--- a/runtime/doc/lua-guide.txt
+++ b/runtime/doc/lua-guide.txt
@@ -462,9 +462,9 @@ useful options:
vim.keymap.set('n', '<Leader>pl1', require('plugin').action,
{ desc = 'Execute action from plugin' })
<
-• `remap`: By default, all mappings are nonrecursive by default (i.e.,
- |vim.keymap.set()| behaves like |:noremap|). If the {rhs} is itself a mapping
- that should be executed, set `remap = true`: >lua
+• `remap`: By default, all mappings are nonrecursive (i.e., |vim.keymap.set()|
+ behaves like |:noremap|). If the {rhs} is itself a mapping that should be
+ executed, set `remap = true`: >lua
vim.keymap.set('n', '<Leader>ex1', '<cmd>echo "Example 1"<cr>')
-- add a shorter mapping
vim.keymap.set('n', 'e', '<Leader>ex1', { remap = true })
@@ -670,8 +670,8 @@ cover only the basics of this advanced topic.
------------------------------------------------------------------------------
Creating user commands *lua-guide-commands-create*
-User commands can be created through with |nvim_create_user_command()|. This
-function takes three mandatory arguments:
+User commands can be created via |nvim_create_user_command()|. This function
+takes three mandatory arguments:
• a string that is the name of the command (which must start with an uppercase
letter to distinguish it from builtin commands);
• a string containing Vim commands or a Lua function that is executed when the