From: shane.xb.qian Date: Fri, 14 Apr 2023 14:45:56 +0000 (+0800) Subject: none: remove '->resolve()' X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=8125b5e584494793cc8c9265d882fbde7344ed03;p=vim-lsp.git none: remove '->resolve()' --- diff --git a/autoload/lsp/lspserver.vim b/autoload/lsp/lspserver.vim index 9a71ed3..69baa9c 100644 --- a/autoload/lsp/lspserver.vim +++ b/autoload/lsp/lspserver.vim @@ -155,12 +155,12 @@ def InitServer(lspserver: dict, 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]