add gohtmltmpl fix to vim config

This commit is contained in:
Barak Michener 2023-01-20 15:18:11 -08:00
parent 5ebe434fbf
commit c667df83fa

View file

@ -130,3 +130,14 @@ augroup end
augroup rust
autocmd FileType rust nnoremap <Leader>lg <cmd>lua rust_where_at_line()<CR>
augroup end
function DetectGoHtmlTmpl()
if expand('%:e') == "html" && search("{{") != 0
setfiletype gohtmltmpl
endif
endfunction
augroup filetypedetect
" gohtmltmpl
au BufRead,BufNewFile *.html call DetectGoHtmlTmpl()
augroup END