Skip to content

Commit

Permalink
fix(treesitter): only disable injections for php and html
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 1, 2023
1 parent 661495a commit 0e1bf11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/noice/text/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function M.highlight(buf, ns, range, lang)

-- we can't use a cached parser here since that could interfer with the existing parser of the buffer
local LanguageTree = require("vim.treesitter.languagetree")
local opts = { injections = { [lang] = "" } }
local opts = { injections = { php = "", html = "" } }
local parser = LanguageTree.new(buf, lang, opts)

parser:set_included_regions({ { range } })
Expand Down

0 comments on commit 0e1bf11

Please sign in to comment.