kaarmu / typst.vim

Vim plugin for Typst
MIT License
281 stars 24 forks source link

Do not panic when a syntax file is not available #81

Open foxyseta opened 8 months ago

foxyseta commented 8 months ago

When an embedded language with no syntax file is specified, the plugin panics. This is undesirable, as the embedded language list may be autogenerated by the neovim distibution/setup in use, rather than hardcoded.

kaarmu commented 7 months ago

This could be resolved by lazily loading syntax with autocmds like in vimtex. I will check it out! For now I will just make sure it doesn't panic.

foxyseta commented 7 months ago

Cool! I have only used vim autocmds once before, so I am not sure how this would work, actually.