From c77e35e25152f908bbd208c20e1124470738ee6a Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Wed, 11 Sep 2024 21:52:49 +0200 Subject: [PATCH] html autocmd --- lua/custom/autocmds.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lua/custom/autocmds.lua b/lua/custom/autocmds.lua index 0bc6d70..a9882f5 100644 --- a/lua/custom/autocmds.lua +++ b/lua/custom/autocmds.lua @@ -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', {