diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2024-05-15 15:44:10 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-15 15:44:10 -0700 |
| commit | 7c13d1a4a836effd436f8bbcdf1d03113f4c48c6 (patch) | |
| tree | 87d31c2bac12322cf5a54803110d66ff4be61f17 /runtime/lua/vim/snippet.lua | |
| parent | 007adde1994da7f25eaa0e6a4f402587afbc508d (diff) | |
| parent | 4399c4932d7b0565932a667e051f6861b8293157 (diff) | |
| download | rneovim-7c13d1a4a836effd436f8bbcdf1d03113f4c48c6.tar.gz rneovim-7c13d1a4a836effd436f8bbcdf1d03113f4c48c6.tar.bz2 rneovim-7c13d1a4a836effd436f8bbcdf1d03113f4c48c6.zip | |
Merge #28747 from justinmk/doc
Diffstat (limited to 'runtime/lua/vim/snippet.lua')
| -rw-r--r-- | runtime/lua/vim/snippet.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/lua/vim/snippet.lua b/runtime/lua/vim/snippet.lua index 2d95d4203d..3d8f73f362 100644 --- a/runtime/lua/vim/snippet.lua +++ b/runtime/lua/vim/snippet.lua @@ -532,10 +532,9 @@ end --- @alias vim.snippet.Direction -1 | 1 ---- Jumps within the active snippet in the given direction. ---- If the jump isn't possible, the function call does nothing. +--- Jumps to the next (or previous) placeholder in the current snippet, if possible. --- ---- You can use this function to navigate a snippet as follows: +--- For example, map `<Tab>` to jump while a snippet is active: --- --- ```lua --- vim.keymap.set({ 'i', 's' }, '<Tab>', function() |