Skip to content

Commit

Permalink
perf(illuminate): on large files >2000 lines, enable lsp references only
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 1, 2023
1 parent fc236b3 commit 08422bf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lua/lazyvim/plugins/editor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 08422bf

Please sign in to comment.