diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2022-01-05 11:04:18 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-05 11:04:18 -0800 |
| commit | 3b275bb7cafd7d77be5fd3cf8d46eaa3a7deddf3 (patch) | |
| tree | 82ff0fcdb2ff8fa3e4b3cd898c43ab5f66cdd0c4 /lua | |
| parent | fix(ltex): use .bat extension on Windows (#1628) (diff) | |
| download | nvim-lspconfig-3b275bb7cafd7d77be5fd3cf8d46eaa3a7deddf3.tar nvim-lspconfig-3b275bb7cafd7d77be5fd3cf8d46eaa3a7deddf3.tar.gz nvim-lspconfig-3b275bb7cafd7d77be5fd3cf8d46eaa3a7deddf3.tar.bz2 nvim-lspconfig-3b275bb7cafd7d77be5fd3cf8d46eaa3a7deddf3.tar.lz nvim-lspconfig-3b275bb7cafd7d77be5fd3cf8d46eaa3a7deddf3.tar.xz nvim-lspconfig-3b275bb7cafd7d77be5fd3cf8d46eaa3a7deddf3.tar.zst nvim-lspconfig-3b275bb7cafd7d77be5fd3cf8d46eaa3a7deddf3.zip | |
chore: remove healthcheck (#1636)
Previously, lspconfig had a recommended healthcheck. This was mostly
noise as its predominant use was to check if a server was installed.
This check was not accurate as vim.fn.executable is extremely primitive
and does not consider cmd_env (forwarded to uv_spawn) or language servers
that are run via an interpreter.
Furthermore, checking if a language server is executable will no longer
be a useful signal once TCP support (which allows for connecting to
already running or remote servers).
Remove for now.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/health.lua | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lua/lspconfig/health.lua b/lua/lspconfig/health.lua deleted file mode 100644 index 1adbe9d2..00000000 --- a/lua/lspconfig/health.lua +++ /dev/null @@ -1,28 +0,0 @@ -local M = {} -function M.check() - local configs = require 'lspconfig.configs' - - 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 - -- Only check configs that have a make_config function. - if not (top_level_config.make_config == nil) then - -- the folder needs to exist - local config = top_level_config.make_config '.' - - local status, cmd = pcall(vim.lsp._cmd_parts, config.cmd) - if not status then - vim.fn['health#report_error'](string.format('%s: config.cmd error, %s', config.name, cmd)) - else - if not (vim.fn.executable(cmd) == 1) then - vim.fn['health#report_error'](string.format('%s: The given command %q is not executable.', config.name, cmd)) - else - vim.fn['health#report_info'](string.format('%s: configuration checked.', config.name)) - end - end - end - end -end - -return M |
