diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-07-13 10:41:39 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-13 10:41:39 -0700 |
| commit | cd1ccf056be9cbcc3d5cbefff08135276bc476ed (patch) | |
| tree | 82a0d7f77d4782b1aa06668298b48d7cf5ecb511 /lua/lspconfig/health.lua | |
| parent | [docgen] Update CONFIG.md (diff) | |
| download | nvim-lspconfig-cd1ccf056be9cbcc3d5cbefff08135276bc476ed.tar nvim-lspconfig-cd1ccf056be9cbcc3d5cbefff08135276bc476ed.tar.gz nvim-lspconfig-cd1ccf056be9cbcc3d5cbefff08135276bc476ed.tar.bz2 nvim-lspconfig-cd1ccf056be9cbcc3d5cbefff08135276bc476ed.tar.lz nvim-lspconfig-cd1ccf056be9cbcc3d5cbefff08135276bc476ed.tar.xz nvim-lspconfig-cd1ccf056be9cbcc3d5cbefff08135276bc476ed.tar.zst nvim-lspconfig-cd1ccf056be9cbcc3d5cbefff08135276bc476ed.zip | |
chore: change stylua to single quotes (#1068)
Diffstat (limited to 'lua/lspconfig/health.lua')
| -rw-r--r-- | lua/lspconfig/health.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lua/lspconfig/health.lua b/lua/lspconfig/health.lua index a9666b6e..8c83d562 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 |
