mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-09 13:43:50 +00:00
vimPlugins.ranger-nvim: init at 2024-02-09
This commit is contained in:
parent
f372ec38b1
commit
2c16fd0449
@ -9666,6 +9666,18 @@ final: prev:
|
||||
meta.homepage = "https://github.com/winston0410/range-highlight.nvim/";
|
||||
};
|
||||
|
||||
ranger-nvim = buildVimPlugin {
|
||||
pname = "ranger.nvim";
|
||||
version = "2024-02-09";
|
||||
src = fetchFromGitHub {
|
||||
owner = "kelly-lin";
|
||||
repo = "ranger.nvim";
|
||||
rev = "d3b032feee6b3b0cf923222f260523e2bd7f3ad3";
|
||||
sha256 = "07c0rri7v0z9hjdj3vqsqjms43y2a9kqqac2s5is7ksz2hqi5yzj";
|
||||
};
|
||||
meta.homepage = "https://github.com/kelly-lin/ranger.nvim/";
|
||||
};
|
||||
|
||||
ranger-vim = buildVimPlugin {
|
||||
pname = "ranger.vim";
|
||||
version = "2021-12-13";
|
||||
|
@ -40,6 +40,7 @@
|
||||
, pandoc
|
||||
, parinfer-rust
|
||||
, phpactor
|
||||
, ranger
|
||||
, ripgrep
|
||||
, skim
|
||||
, sqlite
|
||||
@ -1383,6 +1384,14 @@
|
||||
dependencies = with self; [ cmd-parser-nvim ];
|
||||
};
|
||||
|
||||
ranger-nvim = super.ranger-nvim.overrideAttrs {
|
||||
patches = [ ./patches/ranger.nvim/fix-paths.patch ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace lua/ranger-nvim.lua --replace '@ranger@' ${ranger}
|
||||
'';
|
||||
};
|
||||
|
||||
refactoring-nvim = super.refactoring-nvim.overrideAttrs {
|
||||
dependencies = with self; [ nvim-treesitter plenary-nvim ];
|
||||
};
|
||||
|
@ -0,0 +1,22 @@
|
||||
diff --git a/lua/ranger-nvim.lua b/lua/ranger-nvim.lua
|
||||
index 3b18880..78eb9db 100644
|
||||
--- a/lua/ranger-nvim.lua
|
||||
+++ b/lua/ranger-nvim.lua
|
||||
@@ -109,7 +109,7 @@ local function build_ranger_cmd(select_current_file)
|
||||
end
|
||||
local selectfile_flag = select_current_file and " --selectfile=" .. selected_file or ""
|
||||
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))
|
||||
@@ -182,7 +182,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"
|
||||
)
|
@ -812,6 +812,7 @@ https://gitlab.com/HiPhish/rainbow-delimiters.nvim,HEAD,
|
||||
https://github.com/kien/rainbow_parentheses.vim/,,
|
||||
https://github.com/vim-scripts/random.vim/,,
|
||||
https://github.com/winston0410/range-highlight.nvim/,,
|
||||
https://github.com/kelly-lin/ranger.nvim/,,
|
||||
https://github.com/rafaqz/ranger.vim/,,
|
||||
https://github.com/vim-scripts/rcshell.vim/,,
|
||||
https://github.com/ryvnf/readline.vim/,,
|
||||
|
Loading…
Reference in New Issue
Block a user