From d64f1f1ba9ae4d9e88c3d4a08df9afcda04393bf Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Thu, 27 Oct 2022 09:13:42 +0800 Subject: [PATCH] fix(projectmanager): use absolute path --- lua/spacevim/plugin/projectmanager.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/spacevim/plugin/projectmanager.lua b/lua/spacevim/plugin/projectmanager.lua index 6da2111c6..a18680746 100644 --- a/lua/spacevim/plugin/projectmanager.lua +++ b/lua/spacevim/plugin/projectmanager.lua @@ -174,6 +174,7 @@ local function find_root_directory() logger.debug('bufname is empty, use current directory instead!') fd = fn.getcwd() end + fd = fn.fnamemodify(fd, ':p') logger.debug('start to find root for: ' .. fd) local dirs = {} logger.debug('searching rooter_patterns:' .. vim.inspect(project_rooter_patterns))