fix(native_snippets): Fix native_snippets for vim.snippet api changes (#3083)

This commit is contained in:
Shixin Chai authored and GitHub committed 2024-05-03 09:11:25 +02:00
1 parent 095bc13188
commit 6004e8d4f6
1 file changed
+2 -2
@@ -22,7 +22,7 @@ return {
{
"<Tab>",
function()
if vim.snippet.jumpable(1) then
if vim.snippet.active({ direction = 1 }) then
vim.schedule(function()
vim.snippet.jump(1)
end)
@@ -47,7 +47,7 @@ return {
{
"<S-Tab>",
function()
if vim.snippet.jumpable(-1) then
if vim.snippet.active({ direction = -1 }) then
vim.schedule(function()
vim.snippet.jump(-1)
end)