html autocmd

This commit is contained in:
Christoph J. Scherr 2024-09-11 21:52:49 +02:00
parent b761b44ebb
commit c77e35e251
1 changed files with 11 additions and 0 deletions

View File

@ -15,6 +15,17 @@ vim.api.nvim_create_autocmd('FileType', {
end,
})
-- use html for htmldjango
vim.api.nvim_create_autocmd('FileType', {
group = augroup,
pattern = {
'html',
},
callback = function()
vim.bo.filetype = 'html'
end,
})
-- always use the tex filetype for latex things, as those are most supported by
-- latex language servers.
vim.api.nvim_create_autocmd('FileType', {