AstroVim slow on large files

If you're finding AstroVim is lagging on very large files, it is possible the source of the problem is vim-illuminate.

To determine if it is, run :TSDisable illuminate. Does it solve your problem?

Large file cutoff

If that solved your problem, you can disable illuminate for large files with the following config change.


return {
  event = "User AstroFile",
  opts = function()
    return {
      large_file_cutoff = 3000,

Now any file over 3000 lines will stop using illuminate.

Note: I am using AstroVim 4 here.