aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/provider/ruby
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-04-02 12:36:13 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-04-06 16:42:26 +0200
commit9dd112dd4821a325a6c1c8d952a537f42f9c728c (patch)
tree02d59fe023762ef90c1e93c17dd602095c5195dc /runtime/lua/provider/ruby
parent7560aee59547c3b050c3ee9988dd0e4d36d00144 (diff)
downloadrneovim-9dd112dd4821a325a6c1c8d952a537f42f9c728c.tar.gz
rneovim-9dd112dd4821a325a6c1c8d952a537f42f9c728c.tar.bz2
rneovim-9dd112dd4821a325a6c1c8d952a537f42f9c728c.zip
refactor: remove fn_bool
It's better to use vim.fn directly instead of creating minor abstractions like fn_bool.
Diffstat (limited to 'runtime/lua/provider/ruby')
-rw-r--r--runtime/lua/provider/ruby/health.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/lua/provider/ruby/health.lua b/runtime/lua/provider/ruby/health.lua
index 04f6e303e6..4d859597a4 100644
--- a/runtime/lua/provider/ruby/health.lua
+++ b/runtime/lua/provider/ruby/health.lua
@@ -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.'