home: vim: lua: remove 'is_executable_condition'
This commit is contained in:
parent
034a432c8e
commit
ab34234c83
1 changed files with 0 additions and 9 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue