From 84bf9b3a32035dd3388151c5e55b94558fd394a7 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Thu, 6 Apr 2023 08:41:24 -0700 Subject: [PATCH] Add a .nvim runtime directory and add a template filetype detection autocmd --- .nvim/ftdetect/html.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .nvim/ftdetect/html.lua 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", +})