diff --git a/lua/nvim-biscuits/languages/html.lua b/lua/nvim-biscuits/languages/html.lua index 8652aa4..c87ef6c 100644 --- a/lua/nvim-biscuits/languages/html.lua +++ b/lua/nvim-biscuits/languages/html.lua @@ -29,7 +29,10 @@ language.should_decorate = function(ts_node, text, bufnr) if text == end_string then return false end end - return true + + if ts_node:type() == "element" then return true end + + return false end language.transform_text = function(ts_node, text, bufnr)