summaryrefslogtreecommitdiffstats
path: root/ftdetect
diff options
context:
space:
mode:
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/polyglot.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 85259f4f..d8f2679c 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -1174,6 +1174,13 @@ au BufRead,BufNewFile *.raml set ft=raml
augroup end
endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'razor') == -1
+ augroup filetypedetect
+ " razor, from razor.vim in adamclerk/vim-razor
+autocmd BufNewFile,BufRead *.cshtml setf razor
+ augroup end
+endif
+
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'reason') == -1
augroup filetypedetect
" reason, from reason.vim in reasonml-editor/vim-reason-plus