Use require('illuminate').configure(config) to customize the plugin behavior.
Key configuration options include:
providers: An ordered list of providers used to find references (e.g., 'lsp', 'treesitter', 'regex').delay: Delay in milliseconds before highlighting starts.filetypes_denylist: Filetypes to exclude from illumination.filetypes_allowlist: Filetypes to include (requires setting filetypes_denylist = {} to override defaults).under_cursor: Boolean determining if the word under the cursor should be highlighted.large_file_cutoff: Line count threshold above which large_file_overrides are applied.min_count_to_highlight: Minimum number of matches required to trigger highlighting.should_enable: A callback function function(bufnr) return boolean end to dynamically enable/disable illumination.
require('illuminate').configure({
providers = {
'lsp',
'treesitter',
'regex',
},
delay = 100,
filetypes_denylist = {
'dirbuf',
'dirvish',
'fugitive',
},
filetypes_allowlist = {},
under_cursor = true,
large_file_cutoff = 10000,
large_file_overrides = nil,
min_count_to_highlight = 1,
should_enable = function(bufnr) return true end,
case_insensitive_regex = false,
disable_keymaps = false,
})