Detect all .html files under layouts as HTML files

This commit is contained in:
Eryn Wells 2024-10-05 18:57:11 -05:00
parent 9628145f56
commit afc5433304

View file

@ -2,7 +2,7 @@
local filetypedetectGroup = vim.api.nvim_create_augroup("HugoHTMLTemplates", {clear = true})
vim.api.nvim_create_autocmd({"BufRead", "BufNewFile"}, {
pattern = {"*/layouts/*.html"},
pattern = {"**/layouts/**/*.html"},
group = filetypedetectGroup,
command = "set ft=gohtmltmpl",
})