Skip to content

Commit

Permalink
feat(health): add check for nvim-dap
Browse files Browse the repository at this point in the history
  • Loading branch information
olexsmir committed Sep 22, 2022
1 parent 413efcc commit 9f6e94f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lua/gopher/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ local health = vim.health or require "health"
local utils = require "gopher._utils"
local c = require("gopher.config").config.commands

local requried = "Gopher.nvim will not work without it!"
local M = {
_required = {
plugins = {
{ lib = "plenary" },
{ lib = "nvim-treesitter" },
{ lib = "plenary", help = requried },
{ lib = "nvim-treesitter", help = requried },
{ lib = "dap", help = "Required for set upping debugger" },
},
binarys = {
{ bin = c.go, help = "required for GoMod, GoGet, GoGenerate command" },
Expand All @@ -23,7 +25,7 @@ function M.check()
if utils.lualib_is_found(plugin.lib) then
health.report_ok(plugin.lib .. " installed.")
else
health.report_error(plugin.lib .. " not found. Gopher.nvim will not work without it!")
health.report_error(plugin.lib .. " not found. " .. plugin.help)
end
end

Expand Down

0 comments on commit 9f6e94f

Please sign in to comment.