fix auto select compiler bug
This commit is contained in:
@@ -280,8 +280,7 @@ do
|
||||
return vim.fn.globpath(dir, glob_pattern, false, false, false) ~= ''
|
||||
end
|
||||
|
||||
local all_folders_till_root = nil
|
||||
do
|
||||
local all_folders_till_root = function()
|
||||
local cwd = vim.fn.getcwd()
|
||||
local folders = {cwd} -- array of all folders from cwd to root
|
||||
for dir in vim.fs.parents(cwd) do
|
||||
@@ -304,11 +303,7 @@ do
|
||||
return i, f
|
||||
end
|
||||
|
||||
---return iterator starting from cwd and going upwards until the project
|
||||
---root is found by looking for the .git folder.
|
||||
all_folders_till_root = function()
|
||||
return iter, nil, 0
|
||||
end
|
||||
return iter, nil, 0
|
||||
end
|
||||
|
||||
---@param glob_pattern string
|
||||
|
||||
Reference in New Issue
Block a user