mirror of https://github.com/folke/neoconf.nvim
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:
parent
78d8e31c3d
commit
f25f676e1c
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue