Add a .nvim runtime directory and add a template filetype detection autocmd
This commit is contained in:
parent
3014a7c694
commit
84bf9b3a32
1 changed files with 8 additions and 0 deletions
8
.nvim/ftdetect/html.lua
Normal file
8
.nvim/ftdetect/html.lua
Normal 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",
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue