diff --git a/lua/gopher/health.lua b/lua/gopher/health.lua index f45c499..3e5e98a 100644 --- a/lua/gopher/health.lua +++ b/lua/gopher/health.lua @@ -2,9 +2,6 @@ local health = {} local cmd = require("gopher.config").commands local deps = { - plugin = { - { lib = "nvim-treesitter", msg = "required for everything in gopher.nvim" }, - }, bin = { { bin = cmd.go, @@ -25,13 +22,6 @@ local deps = { }, } ----@param module string ----@return boolean -local function is_lualib_found(module) - local is_found, _ = pcall(require, module) - return is_found -end - ---@param bin string ---@return boolean local function is_binary_found(bin) @@ -46,15 +36,6 @@ local function is_treesitter_parser_available(ft) end function health.check() - vim.health.start "required plugins" - for _, plugin in ipairs(deps.plugin) do - if is_lualib_found(plugin.lib) then - vim.health.ok(plugin.lib .. " installed") - else - vim.health.error(plugin.lib .. " not found, " .. plugin.msg) - end - end - vim.health.start "required binaries" vim.health.info "all those binaries can be installed by `:GoInstallDeps`" for _, bin in ipairs(deps.bin) do