-
-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jump() doesn't work in select mode/placeholders #1212
Comments
I also have this issue with vs code snippets ("rafamadriz/friendly-snippets"). |
Mhh, the first part of you problem-description sounds like you're just missing the SELECT-keybinding (set via |
I'm not fully sure what you mean with the select mapping. In the code snippet, I map insert and select mode: vim.keymap.set({"i", "s"}, "<c-n>", function() ls.jump( 1) end, {silent = true, noremap = true})
vim.keymap.set({"i", "s"}, "<c-p>", function() ls.jump(-1) end, {silent = true, noremap = true}) Do you mean something else? With regards to the formatting, I do not have any formatting enabled, and when expanding a snippet, the buffer does not get formatted either. So Also I'm not even sure if the problem is with I really appreciate your help! |
Ah, I thought you might have used the |
Hey, thanks for this amazing plugin!
When I have this code:
ls.jump()
works when using snippetfoo1
. It doesn't work when using snippetfoo2
.When expanding, it selects the placeholder
one
correctly. Butls.jump()
does not work.When logging
session.current_nodes
injump()
inluasnip/init.lua
it returns{}
.When expanding foo2,
session.current_nodes
is set to nil (= next_current) inunlink_set_adjacent_as_current_no_log()
.What could the problem be?
Thanks!
The text was updated successfully, but these errors were encountered: