Detect all .html files under layouts as HTML files
This commit is contained in:
parent
9628145f56
commit
afc5433304
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
local filetypedetectGroup = vim.api.nvim_create_augroup("HugoHTMLTemplates", {clear = true})
|
local filetypedetectGroup = vim.api.nvim_create_augroup("HugoHTMLTemplates", {clear = true})
|
||||||
vim.api.nvim_create_autocmd({"BufRead", "BufNewFile"}, {
|
vim.api.nvim_create_autocmd({"BufRead", "BufNewFile"}, {
|
||||||
pattern = {"*/layouts/*.html"},
|
pattern = {"**/layouts/**/*.html"},
|
||||||
group = filetypedetectGroup,
|
group = filetypedetectGroup,
|
||||||
command = "set ft=gohtmltmpl",
|
command = "set ft=gohtmltmpl",
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue