home: vim: lua: remove 'is_executable_condition'

This commit is contained in:
Bruno BELANYI 2026-01-26 16:57:25 +00:00
parent 034a432c8e
commit ab34234c83

View file

@ -7,15 +7,6 @@ M.is_executable = function(cmd)
return cmd and vim.fn.executable(cmd) == 1
end
--- return a function that checks if a given command is executable
--- @param cmd string? command to check
--- @return fun(): boolean executable
M.is_executable_condition = function(cmd)
return function()
return M.is_executable(cmd)
end
end
--- whether or not we are currently in an SSH connection
--- @return boolean ssh connection
M.is_ssh = function()