[mirror] Make your go dev experience better github.com/olexsmir/gopher.nvim
neovim golang

feat(health): add check for nvim-dap

Changed files
+5 -3
lua
gopher
+5 -3
lua/gopher/health.lua
··· 2 2 local utils = require "gopher._utils" 3 3 local c = require("gopher.config").config.commands 4 4 5 + local requried = "Gopher.nvim will not work without it!" 5 6 local M = { 6 7 _required = { 7 8 plugins = { 8 - { lib = "plenary" }, 9 - { lib = "nvim-treesitter" }, 9 + { lib = "plenary", help = requried }, 10 + { lib = "nvim-treesitter", help = requried }, 11 + { lib = "dap", help = "Required for set upping debugger" }, 10 12 }, 11 13 binarys = { 12 14 { bin = c.go, help = "required for GoMod, GoGet, GoGenerate command" }, ··· 23 25 if utils.lualib_is_found(plugin.lib) then 24 26 health.report_ok(plugin.lib .. " installed.") 25 27 else 26 - health.report_error(plugin.lib .. " not found. Gopher.nvim will not work without it!") 28 + health.report_error(plugin.lib .. " not found. " .. plugin.help) 27 29 end 28 30 end 29 31