chykcha3 / micro-plugin-latex

Latex lua-written plugin for Micro editor.
7 stars 1 forks source link

tex file not recognized #2

Open mathvdd opened 3 weeks ago

mathvdd commented 3 weeks ago

Hello,

The plugin is not working for me (micro 2.0.9). It looks like the problem comes from isTex = (buf:FileType() == "tex") in the function onBufferOpen(buf) that does not give True but unknown.

I did not find understandable doc for me on the buffer instance so I am unsure how to solve that. However, I could make the compilation on save part work by changing the if isTex then condition with if bp.Buf:FileType() == "tex" then in the onSave(bp) and preSave(bp) functions

mathvdd commented 6 hours ago

In the end I just changed the function onBufferOpen(buf) to function onBufPaneOpen(bp) (9358a06bf7c5e39e36c78cb2800e80bf89682dac). Not sure what it changes exactly (where is the doc for this stuff?) but all works well except ... synctex. It only highlights the section where I am when I save

Could it be that I am missing some dependencies?