aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorMark Harrison <mark@mivok.net>2021-07-05 01:42:42 -0400
committerGitHub <noreply@github.com>2021-07-04 22:42:42 -0700
commit625017df3e1e347ba35e7d6ef7a56efd096e8963 (patch)
tree375da2058776416181d4df26ba358e741503f71f /lua
parent[docgen] Update CONFIG.md (diff)
downloadnvim-lspconfig-625017df3e1e347ba35e7d6ef7a56efd096e8963.tar
nvim-lspconfig-625017df3e1e347ba35e7d6ef7a56efd096e8963.tar.gz
nvim-lspconfig-625017df3e1e347ba35e7d6ef7a56efd096e8963.tar.bz2
nvim-lspconfig-625017df3e1e347ba35e7d6ef7a56efd096e8963.tar.lz
nvim-lspconfig-625017df3e1e347ba35e7d6ef7a56efd096e8963.tar.xz
nvim-lspconfig-625017df3e1e347ba35e7d6ef7a56efd096e8963.tar.zst
nvim-lspconfig-625017df3e1e347ba35e7d6ef7a56efd096e8963.zip
fix: try to resolve root directory if file is not yet on disk
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/util.lua2
1 files changed, 1 insertions, 1 deletions
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