mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(health): normalize installdir before runtimepath check
`get_install_dir('')` calls `vim.fs.joinpath(install_dir, '')` which
produces a trailing slash (e.g. `/path/to/site/`). This doesn't match
the entry in `nvim_list_runtime_paths()` (`/path/to/site`), causing the
health check to incorrectly report "is not in runtimepath."
This commit is contained in:
parent
2b50ab5ccb
commit
fa8fbde1be
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue