Normalize install_dir in health check

When passing an empty string to config.get_install_dir() then
config.install_dir path will get concatinated with an empty string which
adds a trailing slash. This will cause that the path won't be recognized
as being in runtimepaths even though it actually is.
This commit is contained in:
3rfaan 2026-03-21 13:42:42 +01:00
parent e5f65e31a5
commit 932ba5da36

View file

@ -87,7 +87,7 @@ local function install_health()
health.info(k .. ': ' .. v)
end
local installdir = config.get_install_dir('')
local installdir = vim.fs.normalize(config.get_install_dir(''))
health.start('Install directory for parsers and queries')
health.info(installdir)
if vim.uv.fs_access(installdir, 'w') then