diff --git a/lua/neoruby-debugger.lua b/lua/neoruby-debugger.lua index 8909831..f03d83c 100644 --- a/lua/neoruby-debugger.lua +++ b/lua/neoruby-debugger.lua @@ -136,8 +136,8 @@ local function setup_rdbg_adapter(dap) elseif vim.fn.isdirectory('/usr/local/bin') == 1 then rdbg = '/usr/local/bin/rdbg' else - -- This is no such file directory. - rdbg = vim.fn.system('echo -n $(which rdbg)') + -- echo -n $(which rdbg), write this PATH. + rdbg = 'rdbg' end elseif vim.fn.has('linux') == 1 then -- Linux Kernel @@ -149,8 +149,8 @@ local function setup_rdbg_adapter(dap) elseif vim.fn.isdirectory('/usr/local/bin') == 1 then rdbg = '/usr/local/bin/rdbg' else - -- This is no such file directory. - rdbg = vim.fn.system({"echo","-n","$(which rdbg)"}) + -- echo -n $(which rdbg), write this PATH. + rdbg = 'rdbg' end else -- For other OS, change this PATH.