Update 2024-12-16 19:13 OpenBSD/amd64-t14

This commit is contained in:
c0dev0id
2024-12-16 19:13:26 +01:00
parent 6d6f0e9a46
commit e4b33a77ba
16 changed files with 677 additions and 12 deletions

View File

@@ -0,0 +1,16 @@
function! s:DetectGoTemplate()
if findfile('.hugo_build.lock', '.;') !=# ''
set ft=htmlhugo
elseif search('{{\s*end\s*}}')
set ft=htmlhugo
elseif search('{{\s*$\k\+\s*:=')
set ft=htmlhugo
elseif search('{{\s*\.[A-Z]')
set ft=htmlhugo
endif
endfunction
augroup DetectGoTemplate
autocmd!
autocmd BufNewFile,BufRead *.html call <SID>DetectGoTemplate()
augroup END