feat(health): add check for nvim-dap
This commit is contained in:
parent
413efcc9f2
commit
9f6e94f46f
1 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue