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