return function(name) vim.validate('name', name, 'string') return vim.fn.executable(name) == 1 end