fix(lspconfig): use `_available_servers` in health.lua (#105)

according to
e118ce58da

## Description

<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->
fixed _available_servers is nil bug.

## Related Issue(s)
https://github.com/folke/neoconf.nvim/issues/104
<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

## Screenshots

<!-- Add screenshots of the changes if applicable. -->
This commit is contained in:
leoatchina 2025-01-22 15:32:28 +08:00 committed by GitHub
parent 78d8e31c3d
commit f25f676e1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ function M.check_setup()
end end
local lsputil = package.loaded["lspconfig.util"] local lsputil = package.loaded["lspconfig.util"]
if lsputil then if lsputil then
if #lsputil.available_servers() == 0 then if #lsputil._available_servers() == 0 then
return true return true
else else
util.error( util.error(