mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-31 15:19:26 +02:00
feat: illuminate works again
This commit is contained in:
parent
28ae8f558b
commit
293f4369ae
2 changed files with 46 additions and 47 deletions
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue