Closed alexlafroscia closed 7 years ago
Yes, I'm using pangloss/vim-javascript which the plugin relies on for the block inside a JS object.
Which plugin are you using for JS syntax? Maybe I can make it work with both.
I use the same one...
I had a JSX plugin enabled, but removed that, thinking it might be part of the issue. Apparently it's not, though.
Hmm, so if I manually run :call htmlbars_inline_syntax#highlight()
in the JS file, it starts working. Must be something wrong with the autocmd
Changing the autocmd
to
autocmd BufRead,BufNewFile *.js HighlightInlineHbs
Seemed to work. Maybe it's a race condition with then the command gets fired?
This looks great! Although it does remove the highlighting from the hbs
and the back-ticks. Unintended side-effect?
Thanks for digging on this! I will update the autocmd
in the README.
Yes, it seems that the tag (hbs) and the back-ticks lose their syntax group somehow. Definitely not intended.
I can't seem to get this to work. Not seeing any errors in
:messages
, startup seems fine too. Does it I havevim-mustache-handlebars
installed; does this depend on a particular JS highlighting plugin?