nvim/after/ftplugin/gohtmltmpl.vim
2024-11-29 20:35:44 +02:00

11 lines
243 B
VimL

function DetectGoHtmlTmpl()
if expand('%:e') == "html" && search("{{") != 0
setfiletype gohtmltmpl
endif
endfunction
augroup filetypedetect
" gohtmltmpl
au BufRead,BufNewFile *.html call DetectGoHtmlTmpl()
augroup END