Skip to content

Commit 8df4cbd

Browse files
committed
perf: don't bufload when highlighting a buffer
1 parent b4ff29c commit 8df4cbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/noice/text/treesitter.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function M.highlight(buf, ns, range, lang)
5151
lang = M.get_lang(lang)
5252

5353
buf = (buf == 0 or buf == nil) and vim.api.nvim_get_current_buf() or buf
54-
vim.fn.bufload(buf)
54+
-- vim.fn.bufload(buf)
5555

5656
-- we can't use a cached parser here since that could interfer with the existing parser of the buffer
5757
local LanguageTree = require("vim.treesitter.languagetree")

0 commit comments

Comments
 (0)