1
0
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:
jdhao 2025-04-02 21:33:32 +02:00
parent c4160b6f85
commit 9e6be1f001

View File

@ -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