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
When expanding a luasnip snippet, nvim-cmp would automatically go into select mode allowing me to to jump between the arguments. Also, when creating a mapping for nvim-cmp, i was able to specify the mode for the keybind.
-- nvim-cmp example
["<C-l>"] = cmp.mapping(function()
if luasnip.expand_or_locally_jumpable() then
luasnip.expand_or_jump()
end
end, { "i", "s" }),
["<C-h>"] = cmp.mapping(function()
if luasnip.locally_jumpable(-1) then
luasnip.jump(-1)
end
end, { "i", "s" }),
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When expanding a luasnip snippet, nvim-cmp would automatically go into select mode allowing me to to jump between the arguments. Also, when creating a mapping for nvim-cmp, i was able to specify the mode for the keybind.
This is my current configuration
Beta Was this translation helpful? Give feedback.
All reactions