diff options
| author | Yochem van Rosmalen <git@yochem.nl> | 2025-07-24 05:03:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-23 20:03:30 -0700 |
| commit | 35af766de6ee2436a4b24495fb862383d16b419d (patch) | |
| tree | 84e8cddb7e07f97ba9e651bd98bb41fd35353114 /runtime/lua/vim/provider/ruby.lua | |
| parent | 54b8c99e51bb124d03e21a5d268d60125ef9cc01 (diff) | |
| download | rneovim-35af766de6ee2436a4b24495fb862383d16b419d.tar.gz rneovim-35af766de6ee2436a4b24495fb862383d16b419d.tar.bz2 rneovim-35af766de6ee2436a4b24495fb862383d16b419d.zip | |
refactor(lua): use vim.system #34707
Diffstat (limited to 'runtime/lua/vim/provider/ruby.lua')
| -rw-r--r-- | runtime/lua/vim/provider/ruby.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/provider/ruby.lua b/runtime/lua/vim/provider/ruby.lua index 3ad86001f3..299db64b44 100644 --- a/runtime/lua/vim/provider/ruby.lua +++ b/runtime/lua/vim/provider/ruby.lua @@ -45,8 +45,8 @@ function M.detect() prog = '' else -- neovim-ruby-host could be an rbenv shim for another Ruby version. - vim.fn.system(p) - prog = vim.v.shell_error ~= 0 and '' or p + local result = vim.system({ p }):wait() + prog = result.code ~= 0 and '' or p end end local err = prog == '' and 'missing ruby or ruby-host' or '' |