1 require'nvim-treesitter.configs'.setup {
2 -- A list of parser names, or "all" (the five listed parsers should always be installed)
39 disable = function(lang, buf)
40 local max_filesize = 100 * 1024 -- 100 KB
41 local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
42 if ok and stats and stats.size > max_filesize then
47 additional_vim_regex_highlighting = false,