From d4df23b5e38e725fe80da59051bc3f5aa427d3d1 Mon Sep 17 00:00:00 2001 From: Oleksandr Smirnov Date: Thu, 27 Mar 2025 23:04:26 +0200 Subject: [PATCH] refactor(health): remove treesitter from required plugins --- lua/gopher/health.lua | 19 ------------------- 1 file changed, 19 deletions(-) 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