aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lua/nvim-treesitter/health.lua2
-rw-r--r--lua/nvim-treesitter/install.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/lua/nvim-treesitter/health.lua b/lua/nvim-treesitter/health.lua
index 099e766da..1d6400977 100644
--- a/lua/nvim-treesitter/health.lua
+++ b/lua/nvim-treesitter/health.lua
@@ -110,7 +110,7 @@ local function install_health()
end
if
vim.iter(vim.api.nvim_list_runtime_paths()):any(function(p)
- if installdir == p .. '/' then
+ if installdir == vim.fs.normalize(p) .. '/' then
return true
end
end)
diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua
index af95fdeed..ff5cff036 100644
--- a/lua/nvim-treesitter/install.lua
+++ b/lua/nvim-treesitter/install.lua
@@ -562,7 +562,7 @@ local function install(languages, options, _callback)
return
end
- local cache_dir = vim.fn.stdpath('cache')
+ local cache_dir = vim.fs.normalize(vim.fn.stdpath('cache'))
local install_dir = config.get_install_dir('parser')
if not languages or type(languages) == 'string' then