perf(illuminate): on large files >2000 lines, enable lsp references only

This commit is contained in:
Folke Lemaitre 2023-06-02 00:03:52 +02:00
parent fc236b3a2a
commit 08422bf559
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -303,7 +303,13 @@ return {
{
"RRethy/vim-illuminate",
event = { "BufReadPost", "BufNewFile" },
opts = { delay = 200 },
opts = {
delay = 200,
large_file_cutoff = 2000,
large_file_overrides = {
providers = { "lsp" },
},
},
config = function(_, opts)
require("illuminate").configure(opts)