mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
docs: fix vim.snippet help tags (#26068)
This commit is contained in:
@@ -3697,16 +3697,16 @@ totable({f}, {...}) *vim.iter.totable()*
|
|||||||
==============================================================================
|
==============================================================================
|
||||||
Lua module: vim.snippet *vim.snippet*
|
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.
|
Returns `true` if there's an active snippet in the current buffer.
|
||||||
|
|
||||||
Return: ~
|
Return: ~
|
||||||
(boolean)
|
(boolean)
|
||||||
|
|
||||||
exit() *snippet.exit()*
|
vim.snippet.exit() *vim.snippet.exit()*
|
||||||
Exits the current snippet.
|
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.
|
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.
|
Tabstops are highlighted with hl-SnippetTabstop.
|
||||||
@@ -3714,7 +3714,7 @@ expand({input}) *snippet.expand()*
|
|||||||
Parameters: ~
|
Parameters: ~
|
||||||
• {input} (string)
|
• {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
|
Jumps within the active snippet in the given direction. If the jump isn't
|
||||||
possible, the function call does nothing.
|
possible, the function call does nothing.
|
||||||
|
|
||||||
@@ -3732,7 +3732,7 @@ jump({direction}) *snippet.jump()*
|
|||||||
• {direction} (vim.snippet.Direction) Navigation direction. -1 for
|
• {direction} (vim.snippet.Direction) Navigation direction. -1 for
|
||||||
previous, 1 for next.
|
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
|
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
|
given direction. You can use this function to navigate a snippet as
|
||||||
follows: >lua
|
follows: >lua
|
||||||
|
@@ -246,6 +246,7 @@ CONFIG = {
|
|||||||
'base64': 'vim.base64',
|
'base64': 'vim.base64',
|
||||||
'regex': 'vim.regex',
|
'regex': 'vim.regex',
|
||||||
'spell': 'vim.spell',
|
'spell': 'vim.spell',
|
||||||
|
'snippet': 'vim.snippet',
|
||||||
},
|
},
|
||||||
'append_only': [
|
'append_only': [
|
||||||
'shared.lua',
|
'shared.lua',
|
||||||
|
Reference in New Issue
Block a user