]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
none: remove '->resolve()'
authorshane.xb.qian <shane.qian@foxmail.com>
Fri, 14 Apr 2023 14:45:56 +0000 (22:45 +0800)
committershane.xb.qian <shane.qian@foxmail.com>
Fri, 14 Apr 2023 14:45:56 +0000 (22:45 +0800)
autoload/lsp/lspserver.vim

index 9a71ed336018d808be2cb29518be730e9036ad4b..69baa9c2029534842e1f664c50a18a7d0b1cabf4 100644 (file)
@@ -155,12 +155,12 @@ def InitServer(lspserver: dict<any>, bnr: number)
   # Compute the rootpath (based on the directory of the buffer)
   var rootPath = ''
   var rootSearchFiles = lspserver.rootSearchFiles
-  var bufDir = bnr->bufname()->resolve()->fnamemodify(':p:h')
+  var bufDir = bnr->bufname()->fnamemodify(':p:h')
   if !rootSearchFiles->empty()
     rootPath = util.FindNearestRootDir(bufDir, rootSearchFiles)
   endif
   if rootPath == ''
-    var cwd = getcwd()->resolve()
+    var cwd = getcwd()
 
     # bufDir is within cwd
     var bufDirPrefix = bufDir[0 : cwd->strcharlen() - 1]