Skip to content

Commit

Permalink
feat(treesitter): increase disable threshold to 9500
Browse files Browse the repository at this point in the history
Signed-off-by: Jint-lzxy <[email protected]>
  • Loading branch information
Jint-lzxy committed Feb 1, 2025
1 parent b542422 commit f1d06be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/modules/configs/editor/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ return vim.schedule_wrap(function()
disable = function(ft, bufnr)
if
vim.tbl_contains({ "gitcommit" }, ft)
or (vim.api.nvim_buf_line_count(bufnr) > 7500 and ft ~= "vimdoc")
or (vim.api.nvim_buf_line_count(bufnr) > 9500 and ft ~= "vimdoc")
then
return true
end
Expand Down

0 comments on commit f1d06be

Please sign in to comment.