diff options
| author | William Boman <william@redwill.se> | 2023-05-09 22:58:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-09 22:58:30 +0200 |
| commit | a51391311e86c295fc7611be2beb58859e93f21b (patch) | |
| tree | 810a1e7c6f7d40469ecd3752e1c5b02b4b19cedc /lua | |
| parent | chore: update issue template (#1274) (diff) | |
| download | mason-a51391311e86c295fc7611be2beb58859e93f21b.tar mason-a51391311e86c295fc7611be2beb58859e93f21b.tar.gz mason-a51391311e86c295fc7611be2beb58859e93f21b.tar.bz2 mason-a51391311e86c295fc7611be2beb58859e93f21b.tar.lz mason-a51391311e86c295fc7611be2beb58859e93f21b.tar.xz mason-a51391311e86c295fc7611be2beb58859e93f21b.tar.zst mason-a51391311e86c295fc7611be2beb58859e93f21b.zip | |
chore(health): include path and providers settings (#1294)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/mason/health.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lua/mason/health.lua b/lua/mason/health.lua index 716923ce..a2182988 100644 --- a/lua/mason/health.lua +++ b/lua/mason/health.lua @@ -7,6 +7,7 @@ local github_client = require "mason-core.managers.github.client" local platform = require "mason-core.platform" local providers = require "mason-core.providers" local registry_sources = require "mason-registry.sources" +local settings = require "mason.settings" local spawn = require "mason-core.spawn" local version = require "mason.version" @@ -290,7 +291,7 @@ local function check_languages() end ---@async -local function check_mason_version() +local function check_mason() providers.github .get_latest_release("williamboman/mason.nvim") :on_success( @@ -310,13 +311,16 @@ local function check_mason_version() a.scheduler() report_ok(("mason.nvim version %s"):format(version.VERSION)) end) + + report_ok(("PATH: %s"):format(settings.current.PATH)) + report_ok(("Providers: \n %s"):format(_.join("\n ", settings.current.providers))) end function M.check() report_start "mason.nvim" a.run_blocking(function() - check_mason_version() + check_mason() check_neovim() check_registries() check_core_utils() |
