docs: fix vim.snippet help tags (#26068)

This commit is contained in:
Gregory Anders 2023-11-16 10:53:25 -06:00 committed by GitHub
parent 931f28841c
commit dc3f84bf4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View File

@ -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

View File

@ -246,6 +246,7 @@ CONFIG = {
'base64': 'vim.base64',
'regex': 'vim.regex',
'spell': 'vim.spell',
'snippet': 'vim.snippet',
},
'append_only': [
'shared.lua',