diff options
| author | Pete Coleman <pete@petecolemansoftware.co.uk> | 2025-09-23 19:56:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-23 11:56:16 -0700 |
| commit | fc253c0e2739e9cfc897f8a9982194de66ad9481 (patch) | |
| tree | 154192c1c21c01cb15d7b80d280e9ab52670cd86 /lua/lspconfig | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-fc253c0e2739e9cfc897f8a9982194de66ad9481.tar nvim-lspconfig-fc253c0e2739e9cfc897f8a9982194de66ad9481.tar.gz nvim-lspconfig-fc253c0e2739e9cfc897f8a9982194de66ad9481.tar.bz2 nvim-lspconfig-fc253c0e2739e9cfc897f8a9982194de66ad9481.tar.lz nvim-lspconfig-fc253c0e2739e9cfc897f8a9982194de66ad9481.tar.xz nvim-lspconfig-fc253c0e2739e9cfc897f8a9982194de66ad9481.tar.zst nvim-lspconfig-fc253c0e2739e9cfc897f8a9982194de66ad9481.zip | |
fix(utils): normalize root_pattern result #4093
Diffstat (limited to 'lua/lspconfig')
| -rw-r--r-- | lua/lspconfig/util.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
