filter exes

This commit is contained in:
dlond 2025-05-26 00:26:05 +12:00
parent f19561b13f
commit d06e7b8f2d
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ local function collect_executables(dir)
local files = vim.fn.globpath(dir, '**', true, true) local files = vim.fn.globpath(dir, '**', true, true)
local binaries = {} local binaries = {}
for _, path in ipairs(files) do 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) table.insert(binaries, path)
end end
end end