Add a .nvim runtime directory and add a template filetype detection autocmd

This commit is contained in:
Eryn Wells 2023-04-06 08:41:24 -07:00
parent 3014a7c694
commit 84bf9b3a32

8
.nvim/ftdetect/html.lua Normal file
View file

@ -0,0 +1,8 @@
-- Eryn Wells <eryn@erynwells.me>
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",
})