diff options
author | LostNeophyte <[email protected]> | 2023-01-25 11:06:39 +0100 |
---|---|---|
committer | LostNeophyte <[email protected]> | 2023-01-25 11:11:25 +0100 |
commit | eba121cc651413d753f688162413008a6ed455e2 (patch) | |
tree | 737757af86e0be6a2517e4ad21fffb859621494f /lua/lvim/core/illuminate.lua | |
parent | 4b9f4b2ae6dfc034ba10abab5ab91c357c058734 (diff) |
refactor: use callbacks for configuring builtins
Diffstat (limited to 'lua/lvim/core/illuminate.lua')
-rw-r--r-- | lua/lvim/core/illuminate.lua | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lua/lvim/core/illuminate.lua b/lua/lvim/core/illuminate.lua index 5968b4bb..3c14ecab 100644 --- a/lua/lvim/core/illuminate.lua +++ b/lua/lvim/core/illuminate.lua @@ -1,9 +1,7 @@ local M = {} M.config = function() - lvim.builtin.illuminate = { - active = true, - on_config_done = nil, + local config = { options = { -- providers: provider used to get references in the buffer, ordered by priority providers = { @@ -51,6 +49,8 @@ M.config = function() under_cursor = true, }, } + ---@cast config +LvimBuiltin + lvim.builtin.illuminate = config end M.setup = function() @@ -63,10 +63,6 @@ M.setup = function() if not config_ok then return end - - if lvim.builtin.illuminate.on_config_done then - lvim.builtin.illuminate.on_config_done() - end end return M |