mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
fix(health): normalize rtp when checking install_dir
Problem: Windows. Solution: vim.fs.normalize.
This commit is contained in:
parent
234d76709e
commit
4916d6592e
1 changed files with 3 additions and 1 deletions
|
|
@ -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.')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue