1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2024-12-04 23:40:32 +00:00

Finally set ft for .jinja.html

This commit is contained in:
Mo 2022-09-11 19:33:21 +02:00
parent e42a93bed7
commit 6117305dfb
2 changed files with 9 additions and 10 deletions

View file

@ -5,11 +5,3 @@ vim.api.nvim_create_autocmd("TextYankPost", {
vim.highlight.on_yank({ timeout = 1200 })
end,
})
-- set ft of .jinja.html files to htmldjango
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
pattern = "*.jinja.html",
callback = function()
vim.bo.filetype = "htmldjango"
end,
})

View file

@ -45,6 +45,13 @@ o.pumblend = 10
--
o.guifont = "JetBrainsMono Nerd Font Mono"
o.shortmess = o.shortmess .. "S"
--
-- set ft of .jinja.html files to htmldjango
vim.filetype.add({
pattern = {
[".+.jinja.html"] = "htmldjango",
},
})