diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2023-11-16 10:53:25 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-16 10:53:25 -0600 |
commit | dc3f84bf4f94d0389f74991c555c3e76c2ea67f6 (patch) | |
tree | 9cb06e461698c21cb0f9364fee16d6008cdde1bd | |
parent | 931f28841c46015cda70909917b4202e7c746492 (diff) | |
download | rneovim-dc3f84bf4f94d0389f74991c555c3e76c2ea67f6.tar.gz rneovim-dc3f84bf4f94d0389f74991c555c3e76c2ea67f6.tar.bz2 rneovim-dc3f84bf4f94d0389f74991c555c3e76c2ea67f6.zip |
docs: fix vim.snippet help tags (#26068)
-rw-r--r-- | runtime/doc/lua.txt | 10 | ||||
-rwxr-xr-x | scripts/gen_vimdoc.py | 1 |
2 files changed, 6 insertions, 5 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index ada07a71f8..db240e8b75 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -3697,16 +3697,16 @@ totable({f}, {...}) *vim.iter.totable()* ============================================================================== Lua module: vim.snippet *vim.snippet* -active() *snippet.active()* +vim.snippet.active() *vim.snippet.active()* Returns `true` if there's an active snippet in the current buffer. Return: ~ (boolean) -exit() *snippet.exit()* +vim.snippet.exit() *vim.snippet.exit()* Exits the current snippet. -expand({input}) *snippet.expand()* +vim.snippet.expand({input}) *vim.snippet.expand()* Expands the given snippet text. Refer to https://microsoft.github.io/language-server-protocol/specification/#snippet_syntax for the specification of valid input. Tabstops are highlighted with hl-SnippetTabstop. @@ -3714,7 +3714,7 @@ expand({input}) *snippet.expand()* Parameters: ~ • {input} (string) -jump({direction}) *snippet.jump()* +vim.snippet.jump({direction}) *vim.snippet.jump()* Jumps within the active snippet in the given direction. If the jump isn't possible, the function call does nothing. @@ -3732,7 +3732,7 @@ jump({direction}) *snippet.jump()* • {direction} (vim.snippet.Direction) Navigation direction. -1 for previous, 1 for next. -jumpable({direction}) *snippet.jumpable()* +vim.snippet.jumpable({direction}) *vim.snippet.jumpable()* Returns `true` if there is an active snippet which can be jumped in the given direction. You can use this function to navigate a snippet as follows: >lua diff --git a/scripts/gen_vimdoc.py b/scripts/gen_vimdoc.py index c738242c5d..3566d52f6e 100755 --- a/scripts/gen_vimdoc.py +++ b/scripts/gen_vimdoc.py @@ -246,6 +246,7 @@ CONFIG = { 'base64': 'vim.base64', 'regex': 'vim.regex', 'spell': 'vim.spell', + 'snippet': 'vim.snippet', }, 'append_only': [ 'shared.lua', |