I had to add the following code to my .vimrc to make the Rails syntax highlighting and indentation work for turbo stream files with .turbo_stream.erb extension.
" Set filetypes
augroup filetypedetect
au BufRead,BufNewFile *.turbo_stream.erb set filetype=eruby.html
augroup END
I guess this can be added to the base plugin itself.
Vim: 8.1.2269 Vim Rails: 9c92dafe6894aed3fa81df7ac52cdd8e7a8ea9a6 [May 05, 2022] Ruby: 3.1.2 Rails: 7.0.2
I had to add the following code to my
.vimrc
to make the Rails syntax highlighting and indentation work for turbo stream files with.turbo_stream.erb
extension.I guess this can be added to the base plugin itself.