LuaSnip icon indicating copy to clipboard operation
LuaSnip copied to clipboard

Conflicts with nvim-autopairs

Open LilleAila opened this issue 1 year ago • 7 comments

If i have a snippet set to for example lr(, which expands to \left( $1 \right), with nvim-autopairs installed, it adds another ) at the end, so that my expanded snippet becomes \left( $1 \right)). This seems to be because both luasnip and nvim-autopairs handle the (-character and expand it at the same time. Is there any way around this?

this is the snippet in question, but seems to happen for all snippets containing a delimiter that gets expanded by nvim-autopairs.

LilleAila avatar Jan 14 '25 09:01 LilleAila