diff options
| author | Hirokazu Hata <h.hata.ai.t@gmail.com> | 2020-09-06 17:49:21 +0900 |
|---|---|---|
| committer | Hirokazu Hata <h.hata.ai.t@gmail.com> | 2020-09-06 17:49:21 +0900 |
| commit | ddcd9e6aae50d6397e43e4fc9ba0cf7a82cc79de (patch) | |
| tree | c301c7a765535dcb5387d76cc71e28d845dcce23 /lua/nvim_lsp/health.lua | |
| parent | Merge pull request #238 from steelsojka/angular-ls (diff) | |
| download | nvim-lspconfig-ddcd9e6aae50d6397e43e4fc9ba0cf7a82cc79de.tar nvim-lspconfig-ddcd9e6aae50d6397e43e4fc9ba0cf7a82cc79de.tar.gz nvim-lspconfig-ddcd9e6aae50d6397e43e4fc9ba0cf7a82cc79de.tar.bz2 nvim-lspconfig-ddcd9e6aae50d6397e43e4fc9ba0cf7a82cc79de.tar.lz nvim-lspconfig-ddcd9e6aae50d6397e43e4fc9ba0cf7a82cc79de.tar.xz nvim-lspconfig-ddcd9e6aae50d6397e43e4fc9ba0cf7a82cc79de.tar.zst nvim-lspconfig-ddcd9e6aae50d6397e43e4fc9ba0cf7a82cc79de.zip | |
Rename nvim_lsp to lspconfig
Diffstat (limited to 'lua/nvim_lsp/health.lua')
| -rw-r--r-- | lua/nvim_lsp/health.lua | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/lua/nvim_lsp/health.lua b/lua/nvim_lsp/health.lua deleted file mode 100644 index d0e5820e..00000000 --- a/lua/nvim_lsp/health.lua +++ /dev/null @@ -1,26 +0,0 @@ -local M = {} -function M.check_health() - local configs = require 'nvim_lsp/configs' - - for _, top_level_config in pairs(configs) do - -- If users execute `:LspInstall` or `:LspInstallInfo`, - -- a config is required but is not added 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 |
