[vim] Detect Hugo HTML templates when there's a layouts component in the path

This commit is contained in:
Eryn Wells 2024-08-03 09:13:53 -07:00
parent a0baeac863
commit 7eed873e02

View file

@ -0,0 +1,7 @@
-- Eryn Wells <eryn@erynwells.me>
-- Detect layout templates in Hugo projects
vim.api.nvim_create_autocmd({"BufRead", "BufNewFile"}, {
pattern = {"*/layouts/*.html"},
command = "setfiletype gohtmltmpl"
})