mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +00:00
refactor: remove fn_bool
It's better to use vim.fn directly instead of creating minor abstractions like fn_bool.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
local health = vim.health
|
||||
local executable = health.executable
|
||||
local iswin = vim.loop.os_uname().sysname == 'Windows_NT'
|
||||
|
||||
local M = {}
|
||||
@@ -11,7 +10,7 @@ function M.check()
|
||||
return
|
||||
end
|
||||
|
||||
if not executable('ruby') or not executable('gem') then
|
||||
if vim.fn.executable('ruby') == 0 or vim.fn.executable('gem') == 0 then
|
||||
health.warn(
|
||||
'`ruby` and `gem` must be in $PATH.',
|
||||
'Install Ruby and verify that `ruby` and `gem` commands work.'
|
||||
|
Reference in New Issue
Block a user