feat: illuminate works again

This commit is contained in:
ChristianChiarulli 2022-09-20 08:11:36 -04:00
parent 28ae8f558b
commit 293f4369ae
2 changed files with 46 additions and 47 deletions

View file

@ -4,7 +4,14 @@ M.config = function()
lvim.builtin.illuminate = {
active = true,
on_config_done = nil,
options = {
}
local status_ok, illuminate = pcall(require, "illuminate")
if not status_ok then
return
end
illuminate.configure {
-- providers: provider used to get references in the buffer, ordered by priority
providers = {
"lsp",
@ -45,18 +52,10 @@ M.config = function()
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)
if lvim.builtin.illuminate.on_config_done then
lvim.builtin.illuminate.on_config_done()
end

View file

@ -262,10 +262,10 @@ local core_plugins = {
{
"RRethy/vim-illuminate",
setup = function()
config = function()
require("lvim.core.illuminate").setup()
end,
disable = not lvim.builtin.illuminate.active,
-- disable = not lvim.builtin.illuminate.active,
},
{
"lunarvim/onedarker.nvim",