From 9881da4db75b99887699fb22a68b8618d5f1eebb Mon Sep 17 00:00:00 2001 From: Oleksandr Smirnov Date: Wed, 26 Feb 2025 13:37:57 +0200 Subject: [PATCH] refactor(health): refactor --- lua/gopher/health.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lua/gopher/health.lua b/lua/gopher/health.lua index 149afef..0bd3f3f 100644 --- a/lua/gopher/health.lua +++ b/lua/gopher/health.lua @@ -4,7 +4,7 @@ local u = require "gopher._utils.health_util" local deps = { plugin = { - { lib = "nvim-treesitter", msg = "required for everything in gopher.nvim", optional = false }, + { lib = "nvim-treesitter", msg = "required for basically everything in gopher.nvim" }, }, bin = { { @@ -32,11 +32,7 @@ function health.check() if u.is_lualib_found(plugin.lib) then u.ok(plugin.lib .. " installed") else - if plugin.optional then - u.warn(plugin.lib .. " not found, " .. plugin.msg) - else - u.error(plugin.lib .. " not found, " .. plugin.msg) - end + u.error(plugin.lib .. " not found, " .. plugin.msg) end end