Fix native_snippets for vim.snippet api changes

This commit is contained in:
Charlie 2024-04-30 17:52:38 +08:00
parent f086bcde25
commit 404e529856

View file

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