From 65c12df7ea685663aa0b628438ee26347e7cfdb8 Mon Sep 17 00:00:00 2001 From: erw7 Date: Mon, 22 Nov 2021 00:45:54 +0900 Subject: fix(health): fix problem of always showing warning (#1466) --- lua/lspconfig/health.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/lspconfig/health.lua b/lua/lspconfig/health.lua index d922fe85..785a406d 100644 --- a/lua/lspconfig/health.lua +++ b/lua/lspconfig/health.lua @@ -2,7 +2,7 @@ local M = {} function M.check() local configs = require 'lspconfig/configs' - if not configs or #configs == 0 then + if not configs or vim.tbl_count(configs) == 0 then vim.fn['health#report_warn'] [[Can't find any config.]] end for _, top_level_config in pairs(configs) do -- cgit v1.2.3-70-g09d2