-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Insane lag when editing Fennel in Markdown code blocks #53
Comments
Hey there, would you be able to elaborate a bit here? I can't reproduce this at all. Conjure doesn't run or even load in markdown files, so I presume you're using some plugin to embed filetypes within other filetypes (through TreeSitter?) and I guess that's having some weird interaction with Conjure. I would guess your autocomplete is running, failing and consuming a lot of CPU, but that's a wild guess. Any plugins you're using to do this would be useful for reproduction. Thanks! |
If you could try turning off Conjure's completion etc (see the :help files) and see if the problem goes away, that'd be really good! And if you're using tree sitter, you can enable the experimental treesitter form extraction code, again, in |
Oh I assumed this was Conjure, if you're only using Aniseed then I don't see how this would make a difference, Aniseed has no interactive components whatsoever, so I doubt it's Aniseed at all in that case. |
Unfortunately, disabling Aniseed appears to fix the problem, as does switching into Clojure mode. I presume that Aniseed tries to load something more than just syntax highlighting when embedded in Markdown, causing lag on failure. |
I can't reproduce this at all though, if I have a code block in markdown it's just unhighlighted code, so I presume you have a plugin to enable sub-language support in buffers? That leans on TreeSitter somehow? I'm afraid I won't be able to reproduce this until I can reproduce the exact setup you're using. I would imagine it's to do with how your language-in-language thing is implemented but I can't be sure. Maybe disabling omnicompletion support will help? let g:conjure#completion#omnifunc = v:null |
Ok, forgot I had Polyglot providing Markdown support. If vim-markdown is installed and the following is set, the issue should occur. (set nvim.g.markdown_fenced_languages ["fennel"]) |
Hmm, huge guess but is this issue related perhaps? preservim/vim-markdown#162 they mention setting Does that magically fix the issue? |
Unfortunately not. |
I think this is related to the mentioned Conjure issue, it's really something to do with Updating to that should fix your problem since it seems like you were running into the exact same thing. If this is no longer an issue for you due to it being fixed or not using the tooling any more please feel free to close it. Thanks! |
I'm going to close this assuming that my recent work fixed it and it wasn't to do with markdown, but readline slowing things down for some unknown reason. Please feel free to reopen if you've updated everything and you're still having this issue. I'll try to reproduce it and get to the bottom of it. |
For some reason, editing Fennel embedded in a Markdown code block produces large amounts of lag.
I don't quite know what causes this, but I can say that it gets worse quickly.
The text was updated successfully, but these errors were encountered: