LuaSnip
LuaSnip copied to clipboard
Weird expansion bug with `cmp`, that repeats trigger at first insert point :thinking:
I'm not sure which plugin is doing this behavior exactly
Using the following snippet:
snip("do", {desc = "do ... end"}, U.myfmt {
[[
do
<body>
end
]],
{ body = i(0) },
})
Here I try to use the snippet 4 times:
- with no text before, direct expansion via
ls.expand()ok - with no text before, with expansion through
cmp(select then<C-y>) ok - with text before, direct expansion via
ls.expand()BUG - with text before, with expansion through
cmp(select then<C-y>) ok
I'm using cmp with cmp_luasnip of course
Can't reproduce this one either :/
https://github.com/L3MON4D3/LuaSnip/assets/41961280/4089c07e-06eb-41bc-864f-938d9cf96cb8
Yeah that's what I thought, I'll try to repro with a minimal config later, probably this weekend.
It might be because I'm still using cmp's native menu.
Here is a reproduction script:
https://gist.github.com/bew/76f2d512ec42136f61b3802335a7b620