diff --git a/config/nvim/ftdetect/gohtmltmpl.lua b/config/nvim/ftdetect/gohtmltmpl.lua
new file mode 100644
index 0000000..c250b8b
--- /dev/null
+++ b/config/nvim/ftdetect/gohtmltmpl.lua
@@ -0,0 +1,7 @@
+-- Eryn Wells
+
+-- Detect layout templates in Hugo projects
+vim.api.nvim_create_autocmd({"BufRead", "BufNewFile"}, {
+ pattern = {"*/layouts/*.html"},
+ command = "setfiletype gohtmltmpl"
+})