From fa8fbde1be3c01240a159f6cfd216548e2b98426 Mon Sep 17 00:00:00 2001 From: Emilio Arroyo-Fang Date: Tue, 17 Mar 2026 17:19:52 -0700 Subject: [PATCH] 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." --- 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 2fcaea5a0..0452e8773 100644 --- a/lua/nvim-treesitter/health.lua +++ b/lua/nvim-treesitter/health.lua @@ -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