diff --git a/.nvim/ftdetect/html.lua b/.nvim/ftdetect/html.lua new file mode 100644 index 0000000..6fedaca --- /dev/null +++ b/.nvim/ftdetect/html.lua @@ -0,0 +1,8 @@ +-- Eryn Wells + +local filetypedetectGroup = vim.api.nvim_create_augroup("HugoHTMLTemplates", {clear = true}) +vim.api.nvim_create_autocmd({"BufRead", "BufNewFile"}, { + pattern = {"*/layouts/*.html"}, + group = filetypedetectGroup, + command = "set ft=gohtmltmpl", +})