-
-
Notifications
You must be signed in to change notification settings - Fork 265
Open
Description
All snippets are provided in the vscode format
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels