-
-
Notifications
You must be signed in to change notification settings - Fork 248
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
coupling the whole code in a document after inserting a snip and formatting it #265
Comments
Yeah, that's a known limitation :/ Luasnip tracks node-positions via extmarks, these get pushed around when formatting overwrites the entire buffer. I'm going to close this as this issue is already tracked in #174 and #218. |
Can I somehow tell LuaSnip to stop tracking anything? |
Not really, if you want it to work :D |
Maybe I am not understanding this issue. I achieved my desired behavior with this autocmd:
My snippets only have one argument anyway, which will be copied to one or more places.
I type |
Oh, yeah that might also go some way to prevent these issues👍 |
I'm copying and editing a snip from your example and creating this one :
but when I used this snip in any document it's crashed and coupled the whole code after formatting the document.
for example, convert this code
to this code :
The text was updated successfully, but these errors were encountered: