From fc253c0e2739e9cfc897f8a9982194de66ad9481 Mon Sep 17 00:00:00 2001 From: Pete Coleman Date: Tue, 23 Sep 2025 19:56:16 +0100 Subject: fix(utils): normalize root_pattern result #4093 --- lua/lspconfig/util.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/lspconfig/util.lua b/lua/lspconfig/util.lua index 580beaa4..9156fc46 100644 --- a/lua/lspconfig/util.lua +++ b/lua/lspconfig/util.lua @@ -41,7 +41,8 @@ function M.root_pattern(...) end) if match ~= nil then - return match + local real = vim.uv.fs_realpath(match) + return real or match -- fallback to original if realpath fails end end end -- cgit v1.2.3-70-g09d2