Change OpenFOAM file detection auto-cmds

This commit is contained in:
Elwardi 2021-12-14 20:08:36 +01:00 committed by Stephan Seitz
parent efaf985b24
commit 8b336e61d8

View file

@ -9,5 +9,5 @@ function! s:foamFile(path)
endfor
endfunction
autocmd BufNewFile,BufRead * call s:foamFile(expand("%"))
autocmd FileType BufNewFile,BufRead *Dict,*Properties,fvSchemes,fvSolution,*/constant/g,*/0/* call s:foamFile(expand("%"))
autocmd FileType cpp call s:foamFile(expand("%"))