Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
32 lines
1.3 KiB
Diff
32 lines
1.3 KiB
Diff
diff --git a/lua/ranger-nvim.lua b/lua/ranger-nvim.lua
|
|
index be95e36..3bd1587 100644
|
|
--- a/lua/ranger-nvim.lua
|
|
+++ b/lua/ranger-nvim.lua
|
|
@@ -127,7 +127,7 @@ local function build_ranger_cmd(select_current_file)
|
|
local selectfile_flag = select_current_file and " --selectfile=" .. selected_file or ""
|
|
if select_current_file then
|
|
return string.format(
|
|
- "ranger --choosefiles=%s %s %s",
|
|
+ "@ranger@ --choosefiles=%s %s %s",
|
|
SELECTED_FILEPATH,
|
|
selectfile_flag,
|
|
create_ranger_cmd_flags(create_cmd_values(opts.keybinds))
|
|
@@ -135,7 +135,7 @@ local function build_ranger_cmd(select_current_file)
|
|
else
|
|
vim.api.nvim_buf_delete(1, { force = true })
|
|
return string.format(
|
|
- "ranger --choosefiles=%s %s %s",
|
|
+ "@ranger@ --choosefiles=%s %s %s",
|
|
SELECTED_FILEPATH,
|
|
create_ranger_cmd_flags(create_cmd_values(opts.keybinds)),
|
|
get_absolute_argument()
|
|
@@ -209,7 +209,7 @@ end
|
|
---Opens ranger and open selected files on exit.
|
|
---@param select_current_file boolean|nil open ranger and select the current file. Defaults to true.
|
|
function M.open(select_current_file)
|
|
- if vim.fn.executable("ranger") ~= 1 then
|
|
+ if vim.fn.executable("@ranger@") ~= 1 then
|
|
vim.api.nvim_err_write(
|
|
"ranger executable not found, please check that ranger is installed and is in your path\n"
|
|
)
|