From 0e1bf11d46054b8ab04eb62b53c5ac81b44f14df Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sun, 1 Jan 2023 13:02:03 +0100 Subject: [PATCH] fix(treesitter): only disable injections for php and html --- lua/noice/text/treesitter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/noice/text/treesitter.lua b/lua/noice/text/treesitter.lua index dbbe9654..19dac374 100644 --- a/lua/noice/text/treesitter.lua +++ b/lua/noice/text/treesitter.lua @@ -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 } })