fix(health): normalize rtp when checking install_dir

Problem: Windows.

Solution: vim.fs.normalize.
This commit is contained in:
Christian Clason
2026-04-03 15:05:06 +02:00
committed by Christian Clason
parent 234d76709e
commit 4916d6592e

View File

@@ -95,7 +95,9 @@ local function install_health()
else
health.error('is not writable.')
end
if vim.list_contains(vim.api.nvim_list_runtime_paths(), installdir) then
if
vim.list_contains(vim.tbl_map(vim.fs.normalize, vim.api.nvim_list_runtime_paths()), installdir)
then
health.ok('is in runtimepath.')
else
health.error('is not in runtimepath.')