mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-13 10:54:40 +02:00
fix(native_snippets): Fix native_snippets for vim.snippet api
changes (#3083)
This commit is contained in:
parent
095bc13188
commit
6004e8d4f6
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ return {
|
||||||
{
|
{
|
||||||
"<Tab>",
|
"<Tab>",
|
||||||
function()
|
function()
|
||||||
if vim.snippet.jumpable(1) then
|
if vim.snippet.active({ direction = 1 }) then
|
||||||
vim.schedule(function()
|
vim.schedule(function()
|
||||||
vim.snippet.jump(1)
|
vim.snippet.jump(1)
|
||||||
end)
|
end)
|
||||||
|
@ -47,7 +47,7 @@ return {
|
||||||
{
|
{
|
||||||
"<S-Tab>",
|
"<S-Tab>",
|
||||||
function()
|
function()
|
||||||
if vim.snippet.jumpable(-1) then
|
if vim.snippet.active({ direction = -1 }) then
|
||||||
vim.schedule(function()
|
vim.schedule(function()
|
||||||
vim.snippet.jump(-1)
|
vim.snippet.jump(-1)
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue