From 08422bf559cb74a2e673e60d551269cbcb2e18df Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Fri, 2 Jun 2023 00:03:52 +0200 Subject: [PATCH] perf(illuminate): on large files >2000 lines, enable lsp references only --- lua/lazyvim/plugins/editor.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lua/lazyvim/plugins/editor.lua b/lua/lazyvim/plugins/editor.lua index 426c4be6..ab9d7737 100644 --- a/lua/lazyvim/plugins/editor.lua +++ b/lua/lazyvim/plugins/editor.lua @@ -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)