From 01cfedd3fa945dde55c5b041ccbc059a7294a883 Mon Sep 17 00:00:00 2001 From: Urtzi Enriquez-Urzelai Date: Tue, 3 Mar 2026 19:04:13 +0100 Subject: [PATCH] fix(health): normalize both sides of runtimepath comparison The health check was incorrectly reporting "ERROR is not in runtimepath" because it compared the install directory (without trailing slash) against runtimepath entries with a trailing slash added. This caused false positives even when the directory was correctly in runtimepath. Fix by normalizing both paths consistently before comparison. --- lua/nvim-treesitter/health.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-treesitter/health.lua b/lua/nvim-treesitter/health.lua index ff0c0c0cf..a125e0f62 100644 --- a/lua/nvim-treesitter/health.lua +++ b/lua/nvim-treesitter/health.lua @@ -97,7 +97,7 @@ local function install_health() end if vim.iter(vim.api.nvim_list_runtime_paths()):any(function(p) - return installdir == vim.fs.normalize(p) .. '/' + return vim.fs.normalize(installdir) == vim.fs.normalize(p) end) then health.ok('is in runtimepath.')