Skip to content

Commit

Permalink
feat(health): disable dap health check when dap is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
b1nhack committed Jan 25, 2025
1 parent e15c262 commit 2fadfd6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/rustaceanvim/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ local function check_lua_dependency(dep)
return
end
if dep.optional() then
if dep.module == 'dap' then
if require('rustaceanvim.config.internal').dap.disable then
return
end
end
h.warn(('%s not installed. %s %s'):format(dep.module, dep.info, dep.url))
else
error(('Lua dependency %s not found: %s'):format(dep.module, dep.url))
Expand Down

0 comments on commit 2fadfd6

Please sign in to comment.