From afc54333043acd844d7c61c58266ad16f40c2ae1 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 5 Oct 2024 18:57:11 -0500 Subject: [PATCH] Detect all .html files under layouts as HTML files --- .nvim/ftdetect/html.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.nvim/ftdetect/html.lua b/.nvim/ftdetect/html.lua index 6fedaca..1c8cf86 100644 --- a/.nvim/ftdetect/html.lua +++ b/.nvim/ftdetect/html.lua @@ -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", })