diff options
| -rw-r--r-- | .github/ISSUE_TEMPLATE/bug_report.yml | 6 | ||||
| -rw-r--r-- | autoload/health/lspconfig.vim | 4 | ||||
| -rw-r--r-- | lua/lspconfig/health.lua | 28 |
3 files changed, 0 insertions, 38 deletions
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index d760b1bb..0fe9c1f6 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -66,12 +66,6 @@ body: description: "You can download a minimal_init.lua via `curl -fLO https://raw.githubusercontent.com/neovim/nvim-lspconfig/master/test/minimal_init.lua`. Then edit it to include your language server and add necessary configuration and paste it here." validations: required: true - - type: textarea - attributes: - label: "Health check" - description: "Run `:checkhealth lspconfig` and paste the results here." - validations: - required: true - type: input attributes: label: "LSP log" diff --git a/autoload/health/lspconfig.vim b/autoload/health/lspconfig.vim deleted file mode 100644 index a7277980..00000000 --- a/autoload/health/lspconfig.vim +++ /dev/null @@ -1,4 +0,0 @@ -function! health#lspconfig#check() - call health#report_start('Checking language server protocol configuration') - lua require 'lspconfig.health'.check() -endfunction 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 |
