diff options
| author | Mark Harrison <mark@mivok.net> | 2021-07-05 01:42:42 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-04 22:42:42 -0700 |
| commit | 625017df3e1e347ba35e7d6ef7a56efd096e8963 (patch) | |
| tree | 375da2058776416181d4df26ba358e741503f71f /lua/lspconfig/util.lua | |
| parent | [docgen] Update CONFIG.md (diff) | |
| download | nvim-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/lspconfig/util.lua')
| -rw-r--r-- | lua/lspconfig/util.lua | 2 |
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 |
