You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following snippet makes the last node of the snippet where the $0 is.
${1:var} = $0;
The following do the same, after jumping to $0, luasnip.jump(1) will no longer take effect, nvim will keep select mode no matter how luasnip.jump(1) is called.
${1:var} = ${0:nil};
The problem occurs in the following snippet. Ideally, it should behave all the same as the last one, i.e. after jumping to $0, luasnip.jump(1) should not take effect, but the actual situation is different, the calling luasnip.jump(1) again will move the cursor to the position before semicolon and enter insert mode.
${1:var} = ${0:$TM_FILENAME_BASE};
I've tested the same cases in vscode, luasnip behaves differently with vscode.
The text was updated successfully, but these errors were encountered:
IIRC I implemented this because there were some issues with the $0-node in luasnip, in that it couldn't actually contain text.
Since then there have been quite a few changes, and I'll reevaluate whether this still makes sense :)
(But it'll take some time, I don't think this is pressing)
The following snippet makes the last node of the snippet where the
$0
is.The following do the same, after jumping to
$0
,luasnip.jump(1)
will no longer take effect, nvim will keep select mode no matter howluasnip.jump(1)
is called.The problem occurs in the following snippet. Ideally, it should behave all the same as the last one, i.e. after jumping to
$0
,luasnip.jump(1)
should not take effect, but the actual situation is different, the callingluasnip.jump(1)
again will move the cursor to the position before semicolon and enter insert mode.I've tested the same cases in vscode, luasnip behaves differently with vscode.
The text was updated successfully, but these errors were encountered: