mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
update type hints
This commit is contained in:
parent
c4160b6f85
commit
9e6be1f001
@ -3,12 +3,11 @@ local version = vim.version
|
||||
|
||||
local M = {}
|
||||
|
||||
--- Check if an executable exists
|
||||
--- @param name string An executable name/path
|
||||
--- @return boolean
|
||||
function M.executable(name)
|
||||
if fn.executable(name) > 0 then
|
||||
return true
|
||||
end
|
||||
|
||||
return false
|
||||
return fn.executable(name) > 0
|
||||
end
|
||||
|
||||
--- check whether a feature exists in Nvim
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user