emitting events similair to #vimtex#inmathzone #156
Replies: 3 comments
-
Could you give more description of what vimtex's event emitting? Is is a autocmd event? if so there's work here #116 , but not sure what your use case should be triggered by, and I don't know what does mathzone and mathzone emitting by this plugin means. |
Beta Was this translation helpful? Give feedback.
-
its more of a function, you call vimtex#syntax#in_mathzone, and it evaluates to a true/false bool. I want some snippets to only work when in the mathzone in obsidian. like auto expand |
Beta Was this translation helpful? Give feedback.
-
#45 had a prototype checking if in a mathzone, with treesitter, the function looks pretty solid, but since the author has not pushed it forward in a long time and I don't know latex, it is just lying there, maybe you can go ahead and test it out, maybe it is already done? We don't need to fix that particular problem but |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Howdy, I have yet to try this plugin but like obsidian, I want to use luasnip and conditional mathzone expansion(that is only expand when in a mathzone) but obsidian doesnt support luasnip. is there a way to detect when in a mathzone that is emitted by this plugin?
Beta Was this translation helpful? Give feedback.
All reactions