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/dap.lua | |
parent | 4b9f4b2ae6dfc034ba10abab5ab91c357c058734 (diff) |
refactor: use callbacks for configuring builtins
Diffstat (limited to 'lua/lvim/core/dap.lua')
-rw-r--r-- | lua/lvim/core/dap.lua | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lua/lvim/core/dap.lua b/lua/lvim/core/dap.lua index d8de10d5..029d1d98 100644 --- a/lua/lvim/core/dap.lua +++ b/lua/lvim/core/dap.lua @@ -1,9 +1,7 @@ local M = {} M.config = function() - lvim.builtin.dap = { - active = true, - on_config_done = nil, + local config = { breakpoint = { text = lvim.icons.ui.Bug, texthl = "DiagnosticSignError", @@ -95,6 +93,8 @@ M.config = function() }, }, } + ---@cast config +LvimBuiltin + lvim.builtin.dap = config end M.setup = function() @@ -110,10 +110,6 @@ M.setup = function() end dap.set_log_level(lvim.builtin.dap.log.level) - - if lvim.builtin.dap.on_config_done then - lvim.builtin.dap.on_config_done(dap) - end end M.setup_ui = function() |