Skip to content

Commit

Permalink
Don't register filetype detection more than once
Browse files Browse the repository at this point in the history
  • Loading branch information
Lie Ryan committed Oct 1, 2020
1 parent 220cfbc commit d8aa0fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion filetype.vim
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
augroup filetypedetect
augroup djangoplusfiletypedetect
" Since templates can be anything, check any file.
autocmd!
autocmd BufRead,BufNewFile * call djangoplus#detect#filetype(expand('<afile>:p'))
augroup END

0 comments on commit d8aa0fc

Please sign in to comment.