Skip to content

Commit

Permalink
Add missing autocommands for filetype detection (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmhamill authored Nov 6, 2021
1 parent 2341ee3 commit ee8f983
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ftdetect/arcanist.vim
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@
autocmd BufNewFile,BufRead .arc{config,lint,rc,unit} setfiletype json

let s:tmp = !empty($TMPDIR) ? '$TMPDIR' : '/tmp'
execute 'au BufNewFile,BufRead ' . s:tmp . '/*/new-commit setfiletype arcanistdiff'
execute 'au BufNewFile,BufRead ' . s:tmp . '/*/arcanist-patch-commit-message setfiletype arcanistdiff'
execute 'au BufNewFile,BufRead ' . s:tmp . '/*/commit-message setfiletype arcanistdiff'
execute 'au BufNewFile,BufRead ' . s:tmp . '/*/differential-edit-revision-info setfiletype arcanistdiff'
execute 'au BufNewFile,BufRead ' . s:tmp . '/*/differential-update-comments setfiletype arcanistdiff'
execute 'au BufNewFile,BufRead ' . s:tmp . '/*/new-commit setfiletype arcanistdiff'

0 comments on commit ee8f983

Please sign in to comment.