From 625017df3e1e347ba35e7d6ef7a56efd096e8963 Mon Sep 17 00:00:00 2001 From: Mark Harrison Date: Mon, 5 Jul 2021 01:42:42 -0400 Subject: fix: try to resolve root directory if file is not yet on disk --- lua/lspconfig/util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/lspconfig/util.lua') diff --git a/lua/lspconfig/util.lua b/lua/lspconfig/util.lua index 625d3170..028fe7f4 100644 --- a/lua/lspconfig/util.lua +++ b/lua/lspconfig/util.lua @@ -161,7 +161,7 @@ M.path = (function() -- Iterate the path until we find the rootdir. local function iterate_parents(path) - path = uv.fs_realpath(path) + path = uv.fs_realpath(path) or path local function it(s, v) if not v then return -- cgit v1.2.3-70-g09d2