Skip to content

Commit 855ff28

Browse files
committed
Detect *.turbo_stream.erb files as filetype=eruby.html
I have no idea what this is. Resolves: tpope#587
1 parent 7496444 commit 855ff28

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugin/rails.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ augroup railsPluginDetect
122122
\ endif
123123
autocmd BufNewFile,BufReadPost *.rjs,*.rxml,*.builder,*.jbuilder,*.ruby
124124
\ if &filetype !=# 'ruby' | set filetype=ruby | endif
125+
autocmd BufNewFile,BufReadPost *.turbo_stream.erb
126+
\ if &filetype !=# 'eruby.html' | set filetype=eruby.html | endif
125127
autocmd BufReadPost *.log if RailsDetect() | set filetype=railslog | endif
126128

127129
autocmd FileType qf call s:LogDetect()

0 commit comments

Comments
 (0)