From 9f6e94f46f47158f4f46d988a072111a05f8452a Mon Sep 17 00:00:00 2001 From: Smirnov Oleksandr Date: Thu, 22 Sep 2022 17:34:30 +0300 Subject: [PATCH] feat(health): add check for nvim-dap --- lua/gopher/health.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lua/gopher/health.lua b/lua/gopher/health.lua index 8a20fce..faed400 100644 --- a/lua/gopher/health.lua +++ b/lua/gopher/health.lua @@ -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" }, @@ -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