nvim/after/ftplugin/gohtmltmpl.vim

11 lines
243 B
VimL
Raw Normal View History

2024-11-29 18:35:44 +00:00
function DetectGoHtmlTmpl()
if expand('%:e') == "html" && search("{{") != 0
setfiletype gohtmltmpl
endif
endfunction
augroup filetypedetect
" gohtmltmpl
au BufRead,BufNewFile *.html call DetectGoHtmlTmpl()
augroup END