diff options
author | kylo252 <[email protected]> | 2021-08-15 17:38:47 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-08-15 20:08:47 +0430 |
commit | 6eb75c5678ddb4d040f644e331e222078b99b3a1 (patch) | |
tree | 9830028d434cb9cc4e830346fc40ce392db29721 /lua/core/dap.lua | |
parent | f36fd1907fd2480c766d96c65e1aebe69e5c855f (diff) |
[Refactor] Clean-up redundant module-load checks (#1011)
Diffstat (limited to 'lua/core/dap.lua')
-rw-r--r-- | lua/core/dap.lua | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lua/core/dap.lua b/lua/core/dap.lua index 4e21cc4c..259ff87e 100644 --- a/lua/core/dap.lua +++ b/lua/core/dap.lua @@ -1,5 +1,4 @@ local M = {} -local Log = require "core.log" M.config = function() lvim.builtin.dap = { active = false, @@ -13,11 +12,7 @@ M.config = function() end M.setup = function() - local status_ok, dap = pcall(require, "dap") - if not status_ok then - Log:get_default().error "Failed to load dap" - return - end + local dap = require "dap" vim.fn.sign_define("DapBreakpoint", lvim.builtin.dap.breakpoint) dap.defaults.fallback.terminal_win_cmd = "50vsplit new" |