Skip to content

Commit

Permalink
fix(native_snippets): Fix native_snippets for vim.snippet api chang…
Browse files Browse the repository at this point in the history
…es (#3083)
  • Loading branch information
Old-Farmer committed May 3, 2024
1 parent 095bc13 commit 6004e8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/lazyvim/plugins/extras/coding/native_snippets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 6004e8d

Please sign in to comment.