Skip to content

Commit

Permalink
Use sbt.scala multi-filetype for sbt files
Browse files Browse the repository at this point in the history
So we don't stomp on vim-sbt. This also allows other goodies to work
without necessarily having vim-sbt installed:

  - Loading snippets for sbt from a dotted filetype-aware snippets
    plugin, like UltiSnips.

  - Disabling Syntastic for sbt filetype since the syntax check results
    are not useful.

  - Everything else you can do with FileType autocommands.

Closes #54
  • Loading branch information
ches committed Feb 7, 2015
1 parent 1f90f5e commit e6e1237
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ftdetect/scala.vim
Expand Up @@ -4,5 +4,8 @@ fun! s:DetectScala()
endif
endfun

au BufRead,BufNewFile *.scala,*.sbt set filetype=scala
au BufRead,BufNewFile *.scala set filetype=scala
au BufRead,BufNewFile * call s:DetectScala()

" Install vim-sbt for additional syntax highlighting.
au BufRead,BufNewFile *.sbt setfiletype sbt.scala

0 comments on commit e6e1237

Please sign in to comment.