diff options
| author | ChristianChiarulli <[email protected]> | 2022-09-20 08:11:36 -0400 | 
|---|---|---|
| committer | ChristianChiarulli <[email protected]> | 2022-09-20 08:11:36 -0400 | 
| commit | 293f4369aee4c66a48534e81a36e5ed41e74a031 (patch) | |
| tree | 8f291e95a0d35e0625b51bc8d80903131a12ee14 /lua/lvim/core/illuminate.lua | |
| parent | 28ae8f558b1dca4ab9619c25576352f79b73e0cc (diff) | |
feat: illuminate works again
Diffstat (limited to 'lua/lvim/core/illuminate.lua')
| -rw-r--r-- | lua/lvim/core/illuminate.lua | 89 | 
1 files changed, 44 insertions, 45 deletions
| diff --git a/lua/lvim/core/illuminate.lua b/lua/lvim/core/illuminate.lua index e0c8c775..bad0be94 100644 --- a/lua/lvim/core/illuminate.lua +++ b/lua/lvim/core/illuminate.lua @@ -4,59 +4,58 @@ M.config = function()    lvim.builtin.illuminate = {      active = true,      on_config_done = nil, -    options = { -      -- providers: provider used to get references in the buffer, ordered by priority -      providers = { -        "lsp", -        "treesitter", -        "regex", -      }, -      -- delay: delay in milliseconds -      delay = 120, -      -- filetypes_denylist: filetypes to not illuminate, this overrides filetypes_allowlist -      filetypes_denylist = { -        "dirvish", -        "fugitive", -        "alpha", -        "NvimTree", -        "packer", -        "neogitstatus", -        "Trouble", -        "lir", -        "Outline", -        "spectre_panel", -        "toggleterm", -        "DressingSelect", -        "TelescopePrompt", -      }, -      -- filetypes_allowlist: filetypes to illuminate, this is overriden by filetypes_denylist -      filetypes_allowlist = {}, -      -- modes_denylist: modes to not illuminate, this overrides modes_allowlist -      modes_denylist = {}, -      -- modes_allowlist: modes to illuminate, this is overriden by modes_denylist -      modes_allowlist = {}, -      -- providers_regex_syntax_denylist: syntax to not illuminate, this overrides providers_regex_syntax_allowlist -      -- Only applies to the 'regex' provider -      -- Use :echom synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name') -      providers_regex_syntax_denylist = {}, -      -- providers_regex_syntax_allowlist: syntax to illuminate, this is overriden by providers_regex_syntax_denylist -      -- Only applies to the 'regex' provider -      -- Use :echom synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name') -      providers_regex_syntax_allowlist = {}, -      -- under_cursor: whether or not to illuminate under the cursor -      under_cursor = true, -    },    } -end -M.setup = function()    local status_ok, illuminate = pcall(require, "illuminate")    if not status_ok then      return    end -  illuminate.configure(lvim.builtin.illuminate.options) +  illuminate.configure { +    -- providers: provider used to get references in the buffer, ordered by priority +    providers = { +      "lsp", +      "treesitter", +      "regex", +    }, +    -- delay: delay in milliseconds +    delay = 120, +    -- filetypes_denylist: filetypes to not illuminate, this overrides filetypes_allowlist +    filetypes_denylist = { +      "dirvish", +      "fugitive", +      "alpha", +      "NvimTree", +      "packer", +      "neogitstatus", +      "Trouble", +      "lir", +      "Outline", +      "spectre_panel", +      "toggleterm", +      "DressingSelect", +      "TelescopePrompt", +    }, +    -- filetypes_allowlist: filetypes to illuminate, this is overriden by filetypes_denylist +    filetypes_allowlist = {}, +    -- modes_denylist: modes to not illuminate, this overrides modes_allowlist +    modes_denylist = {}, +    -- modes_allowlist: modes to illuminate, this is overriden by modes_denylist +    modes_allowlist = {}, +    -- providers_regex_syntax_denylist: syntax to not illuminate, this overrides providers_regex_syntax_allowlist +    -- Only applies to the 'regex' provider +    -- Use :echom synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name') +    providers_regex_syntax_denylist = {}, +    -- providers_regex_syntax_allowlist: syntax to illuminate, this is overriden by providers_regex_syntax_denylist +    -- Only applies to the 'regex' provider +    -- Use :echom synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name') +    providers_regex_syntax_allowlist = {}, +    -- under_cursor: whether or not to illuminate under the cursor +    under_cursor = true, +  } +end +M.setup = function()    if lvim.builtin.illuminate.on_config_done then      lvim.builtin.illuminate.on_config_done()    end | 
