mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-17 17:38:02 +00:00
fix(health): normalize rtp when checking install_dir
Problem: Windows. Solution: vim.fs.normalize.
This commit is contained in:
committed by
Christian Clason
parent
234d76709e
commit
4916d6592e
@@ -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.')
|
||||
|
||||
Reference in New Issue
Block a user