aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/health.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-07-03 14:45:08 -0700
committerMichael Lingelbach <m.j.lbach@gmail.com>2021-07-03 15:49:27 -0700
commitec11b85df73cce4edb2925cb7f1d0e8db3a07b1c (patch)
tree77d533dc9606ca7e9b30d1a96baebf3de325d2a8 /lua/lspconfig/health.lua
parent[docgen] Update CONFIG.md (diff)
downloadnvim-lspconfig-ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c.tar
nvim-lspconfig-ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c.tar.gz
nvim-lspconfig-ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c.tar.bz2
nvim-lspconfig-ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c.tar.lz
nvim-lspconfig-ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c.tar.xz
nvim-lspconfig-ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c.tar.zst
nvim-lspconfig-ec11b85df73cce4edb2925cb7f1d0e8db3a07b1c.zip
ci: lint and format with stylua
Diffstat (limited to 'lua/lspconfig/health.lua')
-rw-r--r--lua/lspconfig/health.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/lua/lspconfig/health.lua b/lua/lspconfig/health.lua
index ae7bfac3..a9666b6e 100644
--- a/lua/lspconfig/health.lua
+++ b/lua/lspconfig/health.lua
@@ -1,21 +1,21 @@
local M = {}
function M.check_health()
- local configs = require 'lspconfig/configs'
+ local configs = require "lspconfig/configs"
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 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))
+ 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))
+ 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))
+ vim.fn["health#report_info"](string.format("%s: configuration checked.", config.name))
end
end
end