Long story short, given the anatomy of a .vue, file what I'd like to do is:
I have to avenues of attacking this:
- using the aforementioned plugin and somehow monitor for changes of the syntax and update the filetype accordingly. AFAIK vim does not trigger an event when the syntax is changed.
- have something similar with
syntax regionbut for filetype
But so far I could not find a solution. Any suggestions are welcome.
PS: I use neovim in CLI mode, but I don't think that's particularly relevant.