Skip to content

Commit 204cb25

Browse files
feat: add checkhealth entry and fix formatting
1 parent f5ca19f commit 204cb25

File tree

2 files changed

+23
-11
lines changed

2 files changed

+23
-11
lines changed

lua/mason-core/installer/managers/pypi.lua

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -207,18 +207,17 @@ local function pip_install(pkgs, extra_args)
207207
pkgs,
208208
}
209209
else
210-
return venv_python {
211-
"-m",
212-
"pip",
213-
"--disable-pip-version-check",
214-
"install",
215-
"--no-user",
216-
"--ignore-installed",
217-
extra_args or vim.NIL,
218-
pkgs,
219-
}
210+
return venv_python {
211+
"-m",
212+
"pip",
213+
"--disable-pip-version-check",
214+
"install",
215+
"--no-user",
216+
"--ignore-installed",
217+
extra_args or vim.NIL,
218+
pkgs,
219+
}
220220
end
221-
222221
end
223222

224223
---@async

lua/mason/health.lua

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,19 @@ local function check_languages()
227227
apt-get install python3-venv]],
228228
},
229229
}
230+
check {
231+
cmd = "uv",
232+
args = {},
233+
name = "uv",
234+
relaxed = true,
235+
advice = {
236+
[[`uv` not installed, if you want to use the `use_uv` argument
237+
in the pip section of the configuration, you must install it.
238+
239+
https://docs.astral.sh/uv/getting-started/installation/
240+
]],
241+
},
242+
}
230243
end,
231244
function()
232245
a.scheduler()

0 commit comments

Comments
 (0)