aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-11-20 09:30:49 -0500
committerGitHub <noreply@github.com>2021-11-20 09:30:49 -0500
commit2e6c94069e92cb4a43416b3ac0267e941b3fd47e (patch)
treef1db3f5a923708acc6674e329b192420902034c8 /lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-2e6c94069e92cb4a43416b3ac0267e941b3fd47e.tar
nvim-lspconfig-2e6c94069e92cb4a43416b3ac0267e941b3fd47e.tar.gz
nvim-lspconfig-2e6c94069e92cb4a43416b3ac0267e941b3fd47e.tar.bz2
nvim-lspconfig-2e6c94069e92cb4a43416b3ac0267e941b3fd47e.tar.lz
nvim-lspconfig-2e6c94069e92cb4a43416b3ac0267e941b3fd47e.tar.xz
nvim-lspconfig-2e6c94069e92cb4a43416b3ac0267e941b3fd47e.tar.zst
nvim-lspconfig-2e6c94069e92cb4a43416b3ac0267e941b3fd47e.zip
fix(health): fix problem that could return empty results (#1461)
Co-authored-by: erw7 <erw7.github@gmail.com>
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/health.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/lspconfig/health.lua b/lua/lspconfig/health.lua
index 51779132..d922fe85 100644
--- a/lua/lspconfig/health.lua
+++ b/lua/lspconfig/health.lua
@@ -2,6 +2,9 @@ local M = {}
function M.check()
local configs = require 'lspconfig/configs'
+ if not configs or #configs == 0 then
+ vim.fn['health#report_warn'] [[Can't find any config.]]
+ end
for _, top_level_config in pairs(configs) do
-- Only check configs that have a make_config function.
if not (top_level_config.make_config == nil) then