filter exes
This commit is contained in:
parent
f19561b13f
commit
d06e7b8f2d
|
@ -8,7 +8,7 @@ local function collect_executables(dir)
|
|||
local files = vim.fn.globpath(dir, '**', true, true)
|
||||
local binaries = {}
|
||||
for _, path in ipairs(files) do
|
||||
if vim.fn.filereadable(path) == 1 and is_executable(path) then
|
||||
if vim.fn.filereadable(path) == 1 and is_executable(path) and not path:match 'CMakeFiles' then
|
||||
table.insert(binaries, path)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue