Skip to content

Commit

Permalink
fix: only handle elements in html files
Browse files Browse the repository at this point in the history
  • Loading branch information
cmgriffing committed Nov 8, 2021
1 parent ebc9b50 commit d90542d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/nvim-biscuits/languages/html.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d90542d

Please sign in to comment.