require("nvim-treesitter.configs").setup { ensure_installed = { -- funny language hehe "haskell", "rust", "nix", -- vim "lua", -- misc "html", "scss", "css", "json", }, ignore_install = { "typst", "markdown" }, sync_install = false, auto_install = true, highlight = { enable = true }, -- Disable for large files disable = function(lang, buf) local max_filesize = 100 * 1024 -- 100 KB local ok, stats = pcall(vim.uv.fs_stat, vim.api.nvim_buf_get_name(buf)) if ok and stats and stats.size > max_filesize then return true end end, indent = true, }