From 4b7d6ef8b1ee751efc8b501a85b5dc7631940c75 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Wed, 2 Nov 2022 16:17:23 +0100 Subject: [PATCH] Add autotag to htmldjango --- .config/nvim/lua/plugins/treesitter.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua index f6478fa..4b14bca 100644 --- a/.config/nvim/lua/plugins/treesitter.lua +++ b/.config/nvim/lua/plugins/treesitter.lua @@ -31,5 +31,9 @@ require("nvim-treesitter.configs").setup({ }, autotag = { enable = true, + filetypes = { "html", "htmldjango" }, }, }) + +-- Temporary workaround for autotag in htmldjango until a parser exists +require("nvim-treesitter.parsers").filetype_to_parsername.htmldjango = "html"