mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
3208 lines
84 KiB
Nix
3208 lines
84 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
# nixpkgs functions
|
|
buildGoModule,
|
|
buildVimPlugin,
|
|
fetchFromGitHub,
|
|
fetchFromSourcehut,
|
|
fetchpatch,
|
|
fetchurl,
|
|
neovimUtils,
|
|
substituteAll,
|
|
# Language dependencies
|
|
fetchYarnDeps,
|
|
mkYarnModules,
|
|
python3,
|
|
rustPlatform,
|
|
# Misc dependencies
|
|
arrow-cpp,
|
|
Cocoa,
|
|
coc-clangd,
|
|
coc-css,
|
|
coc-diagnostic,
|
|
coc-pyright,
|
|
code-minimap,
|
|
dasht,
|
|
deno,
|
|
direnv,
|
|
duckdb,
|
|
fish,
|
|
fzf,
|
|
gawk,
|
|
git,
|
|
himalaya,
|
|
htop,
|
|
jq,
|
|
khard,
|
|
languagetool,
|
|
llvmPackages,
|
|
meson,
|
|
notmuch,
|
|
neovim-unwrapped,
|
|
nim1,
|
|
nodePackages,
|
|
openscad,
|
|
pandoc,
|
|
parinfer-rust,
|
|
phpactor,
|
|
ranger,
|
|
ripgrep,
|
|
skim,
|
|
sqlite,
|
|
statix,
|
|
stylish-haskell,
|
|
tabnine,
|
|
taskwarrior2,
|
|
taskwarrior3,
|
|
tmux,
|
|
tup,
|
|
typescript,
|
|
vim,
|
|
which,
|
|
xkb-switch,
|
|
ycmd,
|
|
zoxide,
|
|
nodejs,
|
|
xdotool,
|
|
xorg,
|
|
xxd,
|
|
zathura,
|
|
zenity,
|
|
zsh,
|
|
# codeium-nvim dependencies
|
|
codeium,
|
|
# codesnap-nvim dependencies
|
|
clang,
|
|
libuv,
|
|
# command-t dependencies
|
|
getconf,
|
|
ruby,
|
|
# cornelis dependencies
|
|
cornelis,
|
|
# cpsm dependencies
|
|
boost,
|
|
cmake,
|
|
icu,
|
|
ncurses,
|
|
# LanguageClient-neovim dependencies
|
|
CoreFoundation,
|
|
CoreServices,
|
|
# nvim-treesitter dependencies
|
|
callPackage,
|
|
# Preview-nvim dependencies
|
|
md-tui,
|
|
# sg.nvim dependencies
|
|
darwin,
|
|
# sved dependencies
|
|
glib,
|
|
gobject-introspection,
|
|
wrapGAppsHook3,
|
|
writeText,
|
|
# sniprun dependencies
|
|
bashInteractive,
|
|
coreutils,
|
|
curl,
|
|
gnugrep,
|
|
gnused,
|
|
makeWrapper,
|
|
procps,
|
|
# sg-nvim dependencies
|
|
openssl,
|
|
pkg-config,
|
|
# vim-agda dependencies
|
|
agda,
|
|
# vim-go dependencies
|
|
asmfmt,
|
|
delve,
|
|
errcheck,
|
|
go-motion,
|
|
go-tools,
|
|
gocode-gomod,
|
|
godef,
|
|
gogetdoc,
|
|
golangci-lint,
|
|
golint,
|
|
gomodifytags,
|
|
gopls,
|
|
gotags,
|
|
gotools,
|
|
iferr,
|
|
impl,
|
|
reftools,
|
|
revive,
|
|
# hurl dependencies
|
|
hurl,
|
|
# must be lua51Packages
|
|
luajitPackages,
|
|
aider-chat,
|
|
# typst-preview dependencies
|
|
tinymist,
|
|
websocat,
|
|
}:
|
|
self: super:
|
|
let
|
|
luaPackages = neovim-unwrapped.lua.pkgs;
|
|
in
|
|
{
|
|
alpha-nvim = super.alpha-nvim.overrideAttrs {
|
|
nvimRequireCheck = "alpha";
|
|
};
|
|
|
|
advanced-git-search-nvim = super.advanced-git-search-nvim.overrideAttrs {
|
|
dependencies = with super; [
|
|
telescope-nvim
|
|
vim-fugitive
|
|
vim-rhubarb
|
|
];
|
|
nvimRequireCheck = "advanced_git_search.utils";
|
|
};
|
|
|
|
animation-nvim = super.animation-nvim.overrideAttrs {
|
|
dependencies = with self; [ middleclass ];
|
|
nvimRequireCheck = "animation";
|
|
};
|
|
|
|
autosave-nvim = super.autosave-nvim.overrideAttrs {
|
|
dependencies = with super; [ plenary-nvim ];
|
|
nvimRequireCheck = "autosave";
|
|
};
|
|
|
|
avante-nvim = super.avante-nvim.overrideAttrs (
|
|
oldAttrs:
|
|
let
|
|
avante-nvim-lib = rustPlatform.buildRustPackage {
|
|
pname = "avante-nvim-lib";
|
|
inherit (oldAttrs) version src;
|
|
|
|
cargoHash = "sha256-M58LL50uddn2siS3j8WovWSymdPmbJyZg1y6pGudgEo=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
];
|
|
|
|
buildFeatures = [ "luajit" ];
|
|
|
|
checkFlags = [
|
|
# Disabled because they access the network.
|
|
"--skip=test_hf"
|
|
"--skip=test_public_url"
|
|
"--skip=test_roundtrip"
|
|
];
|
|
};
|
|
in
|
|
{
|
|
dependencies = with self; [
|
|
dressing-nvim
|
|
nui-nvim
|
|
nvim-treesitter
|
|
plenary-nvim
|
|
];
|
|
|
|
postInstall =
|
|
let
|
|
ext = stdenv.hostPlatform.extensions.sharedLibrary;
|
|
in
|
|
''
|
|
mkdir -p $out/build
|
|
ln -s ${avante-nvim-lib}/lib/libavante_repo_map${ext} $out/build/avante_repo_map${ext}
|
|
ln -s ${avante-nvim-lib}/lib/libavante_templates${ext} $out/build/avante_templates${ext}
|
|
ln -s ${avante-nvim-lib}/lib/libavante_tokenizers${ext} $out/build/avante_tokenizers${ext}
|
|
'';
|
|
|
|
doInstallCheck = true;
|
|
nvimRequireCheck = "avante";
|
|
|
|
meta = {
|
|
description = "Neovim plugin designed to emulate the behaviour of the Cursor AI IDE";
|
|
homepage = "https://github.com/yetone/avante.nvim";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [
|
|
ttrei
|
|
aarnphm
|
|
];
|
|
};
|
|
}
|
|
);
|
|
|
|
barbecue-nvim = super.barbecue-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-lspconfig
|
|
nvim-navic
|
|
];
|
|
meta = {
|
|
description = "VS Code like winbar for Neovim";
|
|
homepage = "https://github.com/utilyre/barbecue.nvim";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ lightquantum ];
|
|
};
|
|
nvimRequireCheck = "barbecue";
|
|
};
|
|
|
|
base46 = super.base46.overrideAttrs {
|
|
dependencies = with self; [ nvchad ];
|
|
};
|
|
|
|
# The GitHub repository returns 404, which breaks the update script
|
|
bitbake-vim = buildVimPlugin {
|
|
pname = "bitbake.vim";
|
|
version = "2021-02-06";
|
|
src = fetchFromGitHub {
|
|
owner = "sblumentritt";
|
|
repo = "bitbake.vim";
|
|
rev = "faddca1e8768b10c80ee85221fb51a560df5ba45";
|
|
sha256 = "1hfly2vxhhvjdiwgfz58hr3523kf9z71i78vk168n3kdqp5vkwrp";
|
|
};
|
|
meta.homepage = "https://github.com/sblumentritt/bitbake.vim/";
|
|
};
|
|
|
|
blink-cmp = callPackage ./blink-cmp { };
|
|
|
|
bluloco-nvim = super.bluloco-nvim.overrideAttrs {
|
|
dependencies = with self; [ lush-nvim ];
|
|
};
|
|
|
|
chadtree = super.chadtree.overrideAttrs {
|
|
buildInputs = [
|
|
python3
|
|
];
|
|
passthru.python3Dependencies =
|
|
ps: with ps; [
|
|
pynvim-pp
|
|
pyyaml
|
|
std2
|
|
];
|
|
|
|
# We need some patches so it stops complaining about not being in a venv
|
|
patches = [ ./patches/chadtree/emulate-venv.patch ];
|
|
nvimRequireCheck = "chadtree";
|
|
};
|
|
|
|
ChatGPT-nvim = super.ChatGPT-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
nui-nvim
|
|
plenary-nvim
|
|
telescope-nvim
|
|
];
|
|
nvimRequireCheck = "chatgpt";
|
|
};
|
|
|
|
cheatsheet-nvim = super.cheatsheet-nvim.overrideAttrs {
|
|
dependencies = with self; [ telescope-nvim ];
|
|
};
|
|
|
|
clang_complete = super.clang_complete.overrideAttrs {
|
|
# In addition to the arguments you pass to your compiler, you also need to
|
|
# specify the path of the C++ std header (if you are using C++).
|
|
# These usually implicitly set by cc-wrapper around clang (pkgs/build-support/cc-wrapper).
|
|
# The linked ruby code shows generates the required '.clang_complete' for cmake based projects
|
|
# https://gist.github.com/Mic92/135e83803ed29162817fce4098dec144
|
|
preFixup =
|
|
''
|
|
substituteInPlace "$out"/plugin/clang_complete.vim \
|
|
--replace "let g:clang_library_path = ''
|
|
+ "''"
|
|
+ ''
|
|
" "let g:clang_library_path='${lib.getLib llvmPackages.libclang}/lib/libclang.so'"
|
|
|
|
substituteInPlace "$out"/plugin/libclang.py \
|
|
--replace "/usr/lib/clang" "${llvmPackages.clang.cc}/lib/clang"
|
|
'';
|
|
};
|
|
|
|
clighter8 = super.clighter8.overrideAttrs {
|
|
preFixup = ''
|
|
sed "/^let g:clighter8_libclang_path/s|')$|${lib.getLib llvmPackages.clang.cc}/lib/libclang.so')|" \
|
|
-i "$out"/plugin/clighter8.vim
|
|
'';
|
|
};
|
|
|
|
clipboard-image-nvim = super.clipboard-image-nvim.overrideAttrs {
|
|
postPatch = ''
|
|
sed -i -e 's/require "health"/vim.health/' lua/clipboard-image/health.lua
|
|
'';
|
|
nvimRequireCheck = "clipboard-image";
|
|
};
|
|
|
|
cmake-tools-nvim = super.cmake-tools-nvim.overrideAttrs {
|
|
dependencies = with self; [ plenary-nvim ];
|
|
nvimRequireCheck = "cmake-tools";
|
|
};
|
|
|
|
cmp-ai = super.cmp-ai.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-cmp
|
|
plenary-nvim
|
|
];
|
|
nvimRequireCheck = "cmp_ai";
|
|
};
|
|
|
|
cmp-async-path = super.cmp-async-path.overrideAttrs {
|
|
dependencies = [ self.nvim-cmp ];
|
|
};
|
|
|
|
cmp-beancount = super.cmp-beancount.overrideAttrs {
|
|
dependencies = [ self.nvim-cmp ];
|
|
};
|
|
|
|
cmp-clippy = super.cmp-clippy.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-cmp
|
|
plenary-nvim
|
|
];
|
|
nvimRequireCheck = "cmp_clippy";
|
|
};
|
|
|
|
cmp-cmdline = super.cmp-cmdline.overrideAttrs {
|
|
dependencies = [ self.nvim-cmp ];
|
|
};
|
|
|
|
cmp-conjure = super.cmp-conjure.overrideAttrs {
|
|
dependencies = with self; [
|
|
conjure
|
|
nvim-cmp
|
|
];
|
|
};
|
|
|
|
cmp-copilot = super.cmp-copilot.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-cmp
|
|
copilot-vim
|
|
];
|
|
nvimRequireCheck = "cmp_copilot";
|
|
};
|
|
|
|
cmp-ctags = super.cmp-ctags.overrideAttrs {
|
|
dependencies = with self; [ nvim-cmp ];
|
|
nvimRequireCheck = "cmp_ctags";
|
|
};
|
|
|
|
cmp-dap = super.cmp-dap.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-cmp
|
|
nvim-dap
|
|
];
|
|
nvimRequireCheck = "cmp_dap";
|
|
};
|
|
|
|
cmp-dictionary = super.cmp-dictionary.overrideAttrs {
|
|
dependencies = with self; [ nvim-cmp ];
|
|
nvimRequireCheck = "cmp_dictionary";
|
|
};
|
|
|
|
cmp-digraphs = super.cmp-digraphs.overrideAttrs {
|
|
dependencies = with self; [ nvim-cmp ];
|
|
nvimRequireCheck = "cmp_digraphs";
|
|
};
|
|
|
|
cmp-fish = super.cmp-fish.overrideAttrs {
|
|
dependencies = with self; [ nvim-cmp ];
|
|
nvimRequireCheck = "cmp_fish";
|
|
};
|
|
|
|
cmp-fuzzy-buffer = super.cmp-fuzzy-buffer.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-cmp
|
|
fuzzy-nvim
|
|
];
|
|
nvimRequireCheck = "cmp_fuzzy_buffer";
|
|
};
|
|
|
|
cmp-fuzzy-path = super.cmp-fuzzy-path.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-cmp
|
|
fuzzy-nvim
|
|
];
|
|
nvimRequireCheck = "cmp_fuzzy_path";
|
|
};
|
|
|
|
cmp-git = super.cmp-git.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-cmp
|
|
plenary-nvim
|
|
];
|
|
nvimRequireCheck = "cmp_git";
|
|
};
|
|
|
|
cmp-greek = super.cmp-greek.overrideAttrs {
|
|
dependencies = [ self.nvim-cmp ];
|
|
nvimRequireCheck = "cmp_greek";
|
|
};
|
|
|
|
cmp-look = super.cmp-look.overrideAttrs {
|
|
dependencies = [ self.nvim-cmp ];
|
|
nvimRequireCheck = "cmp_look";
|
|
};
|
|
|
|
cmp_luasnip = super.cmp_luasnip.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-cmp
|
|
luasnip
|
|
];
|
|
};
|
|
|
|
cmp-neosnippet = super.cmp-neosnippet.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-cmp
|
|
neosnippet-vim
|
|
];
|
|
nvimRequireCheck = "cmp_neosnippet";
|
|
};
|
|
|
|
cmp-nixpkgs-maintainers = super.cmp-nixpkgs-maintainers.overrideAttrs {
|
|
dependencies = with self; [ nvim-cmp ];
|
|
nvimRequireCheck = "cmp_nixpkgs_maintainers";
|
|
};
|
|
|
|
cmp-npm = super.cmp-npm.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-cmp
|
|
plenary-nvim
|
|
];
|
|
nvimRequireCheck = "cmp-npm";
|
|
};
|
|
|
|
cmp-nvim-lsp-signature-help = super.cmp-nvim-lsp-signature-help.overrideAttrs {
|
|
dependencies = with self; [ nvim-cmp ];
|
|
nvimRequireCheck = "cmp_nvim_lsp_signature_help";
|
|
};
|
|
|
|
cmp-nvim-lua = super.cmp-nvim-lua.overrideAttrs {
|
|
dependencies = [ self.nvim-cmp ];
|
|
};
|
|
|
|
cmp-nvim-tags = super.cmp-nvim-tags.overrideAttrs {
|
|
dependencies = with self; [ nvim-cmp ];
|
|
nvimRequireCheck = "cmp_nvim_tags";
|
|
};
|
|
|
|
cmp-nvim-ultisnips = super.cmp-nvim-ultisnips.overrideAttrs {
|
|
dependencies = [ self.nvim-cmp ];
|
|
};
|
|
|
|
cmp-pandoc-nvim = super.cmp-pandoc-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-cmp
|
|
plenary-nvim
|
|
];
|
|
nvimRequireCheck = "cmp_pandoc";
|
|
};
|
|
|
|
cmp-pandoc-references = super.cmp-pandoc-references.overrideAttrs {
|
|
dependencies = [ self.nvim-cmp ];
|
|
};
|
|
|
|
cmp-path = super.cmp-path.overrideAttrs {
|
|
dependencies = [ self.nvim-cmp ];
|
|
};
|
|
|
|
cmp-rg = super.cmp-rg.overrideAttrs {
|
|
dependencies = with self; [ nvim-cmp ];
|
|
nvimRequireCheck = "cmp-rg";
|
|
};
|
|
|
|
cmp-snippy = super.cmp-snippy.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-cmp
|
|
nvim-snippy
|
|
];
|
|
nvimRequireCheck = "cmp_snippy";
|
|
};
|
|
|
|
cmp-tabby = super.cmp-tabby.overrideAttrs {
|
|
dependencies = with self; [ nvim-cmp ];
|
|
nvimRequireCheck = "cmp_tabby";
|
|
};
|
|
|
|
cmp-tabnine = super.cmp-tabnine.overrideAttrs {
|
|
buildInputs = [ tabnine ];
|
|
dependencies = with self; [ nvim-cmp ];
|
|
|
|
postFixup = ''
|
|
mkdir -p $target/binaries/${tabnine.version}
|
|
ln -s ${tabnine}/bin/ $target/binaries/${tabnine.version}/${tabnine.passthru.platform}
|
|
'';
|
|
nvimRequireCheck = "cmp_tabnine";
|
|
};
|
|
|
|
cmp-tmux = super.cmp-tmux.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-cmp
|
|
tmux
|
|
];
|
|
nvimRequireCheck = "cmp_tmux";
|
|
};
|
|
|
|
cmp-vim-lsp = super.cmp-vim-lsp.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-cmp
|
|
vim-lsp
|
|
];
|
|
};
|
|
|
|
cmp-vimwiki-tags = super.cmp-vimwiki-tags.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-cmp
|
|
vimwiki
|
|
];
|
|
nvimRequireCheck = "cmp_vimwiki_tags";
|
|
};
|
|
|
|
cmp-vsnip = super.cmp-vsnip.overrideAttrs {
|
|
dependencies = [ self.nvim-cmp ];
|
|
};
|
|
|
|
cmp-zsh = super.cmp-zsh.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-cmp
|
|
zsh
|
|
];
|
|
nvimRequireCheck = "cmp_zsh";
|
|
};
|
|
|
|
coc-clangd = buildVimPlugin {
|
|
inherit (coc-clangd) pname version meta;
|
|
src = "${coc-clangd}/lib/node_modules/coc-clangd";
|
|
};
|
|
|
|
coc-css = buildVimPlugin {
|
|
inherit (coc-css) pname version meta;
|
|
src = "${coc-css}/lib/node_modules/coc-css";
|
|
};
|
|
|
|
coc-diagnostic = buildVimPlugin {
|
|
inherit (coc-diagnostic) pname version meta;
|
|
src = "${coc-diagnostic}/lib/node_modules/coc-diagnostic";
|
|
};
|
|
|
|
coc-pyright = buildVimPlugin {
|
|
pname = "coc-pyright";
|
|
inherit (coc-pyright) version meta;
|
|
src = "${coc-pyright}/lib/node_modules/coc-pyright";
|
|
};
|
|
|
|
coc-nginx = buildVimPlugin {
|
|
pname = "coc-nginx";
|
|
inherit (nodePackages."@yaegassy/coc-nginx") version meta;
|
|
src = "${nodePackages."@yaegassy/coc-nginx"}/lib/node_modules/@yaegassy/coc-nginx";
|
|
};
|
|
|
|
codecompanion-nvim = super.codecompanion-nvim.overrideAttrs {
|
|
dependencies = with self; [ plenary-nvim ];
|
|
nvimRequireCheck = "codecompanion";
|
|
};
|
|
|
|
codeium-nvim =
|
|
let
|
|
# Update according to https://github.com/Exafunction/codeium.nvim/blob/main/lua/codeium/versions.json
|
|
codeiumVersion = "1.20.9";
|
|
codeiumHashes = {
|
|
x86_64-linux = "sha256-IeNK7UQtOhqC/eQv7MAya4jB1WIGykSR7IgutZatmHM=";
|
|
aarch64-linux = "sha256-ujTFki/3V79El2WCkG0PJhbaMT0knC9mrS9E7Uv9HD4=";
|
|
x86_64-darwin = "sha256-r2KloEQsUku9sk8h76kwyQuMTHcq/vwfTSK2dkiXDzE=";
|
|
aarch64-darwin = "sha256-1jNH0Up8mAahDgvPF6g42LV+RVDVsPqDM54lE2KYY48=";
|
|
};
|
|
|
|
codeium' = codeium.overrideAttrs rec {
|
|
version = codeiumVersion;
|
|
|
|
src =
|
|
let
|
|
inherit (stdenv.hostPlatform) system;
|
|
throwSystem = throw "Unsupported system: ${system}";
|
|
|
|
platform =
|
|
{
|
|
x86_64-linux = "linux_x64";
|
|
aarch64-linux = "linux_arm";
|
|
x86_64-darwin = "macos_x64";
|
|
aarch64-darwin = "macos_arm";
|
|
}
|
|
.${system} or throwSystem;
|
|
|
|
hash = codeiumHashes.${system} or throwSystem;
|
|
in
|
|
fetchurl {
|
|
name = "codeium-${version}.gz";
|
|
url = "https://github.com/Exafunction/codeium/releases/download/language-server-v${version}/language_server_${platform}.gz";
|
|
inherit hash;
|
|
};
|
|
};
|
|
|
|
in
|
|
super.codeium-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-cmp
|
|
plenary-nvim
|
|
];
|
|
buildPhase = ''
|
|
cat << EOF > lua/codeium/installation_defaults.lua
|
|
return {
|
|
tools = {
|
|
language_server = "${codeium'}/bin/codeium_language_server"
|
|
};
|
|
};
|
|
EOF
|
|
'';
|
|
|
|
doCheck = true;
|
|
checkInputs = [ jq ];
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
expected_codeium_version=$(jq -r '.version' lua/codeium/versions.json)
|
|
actual_codeium_version=$(${codeium'}/bin/codeium_language_server --version)
|
|
|
|
expected_codeium_stamp=$(jq -r '.stamp' lua/codeium/versions.json)
|
|
actual_codeium_stamp=$(${codeium'}/bin/codeium_language_server --stamp | grep STABLE_BUILD_SCM_REVISION | cut -d' ' -f2)
|
|
|
|
if [ "$actual_codeium_stamp" != "$expected_codeium_stamp" ]; then
|
|
echo "
|
|
The version of codeium patched in vimPlugins.codeium-nvim is incorrect.
|
|
Expected stamp: $expected_codeium_stamp
|
|
Actual stamp: $actual_codeium_stamp
|
|
|
|
Expected codeium version: $expected_codeium_version
|
|
Actual codeium version: $actual_codeium_version
|
|
|
|
Please, update 'codeiumVersion' in pkgs/applications/editors/vim/plugins/overrides.nix accordingly to:
|
|
https://github.com/Exafunction/codeium.nvim/blob/main/lua/codeium/versions.json
|
|
"
|
|
exit 1
|
|
fi
|
|
|
|
runHook postCheck
|
|
'';
|
|
nvimRequireCheck = "codeium";
|
|
};
|
|
|
|
codesnap-nvim =
|
|
let
|
|
version = "1.6.1";
|
|
src = fetchFromGitHub {
|
|
owner = "mistricky";
|
|
repo = "codesnap.nvim";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-OmSgrTYDtNb2plMyzjVvxGrfXB/lGKDpUQhpRqKfAMA=";
|
|
};
|
|
codesnap-lib = rustPlatform.buildRustPackage {
|
|
pname = "codesnap-lib";
|
|
inherit version src;
|
|
|
|
sourceRoot = "${src.name}/generator";
|
|
|
|
cargoHash = "sha256-6n37n8oHIHrz3S1+40nuD0Ud3l0iNgXig1ZwrgsnYTI=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
rustPlatform.bindgenHook
|
|
];
|
|
|
|
buildInputs =
|
|
[
|
|
libuv.dev
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
darwin.apple_sdk.frameworks.AppKit
|
|
];
|
|
};
|
|
in
|
|
buildVimPlugin {
|
|
pname = "codesnap.nvim";
|
|
inherit version src;
|
|
|
|
# - Remove the shipped pre-built binaries
|
|
# - Copy the resulting binary from the codesnap-lib derivation
|
|
# Note: the destination should be generator.so, even on darwin
|
|
# https://github.com/mistricky/codesnap.nvim/blob/main/scripts/build_generator.sh
|
|
postInstall =
|
|
let
|
|
extension = if stdenv.hostPlatform.isDarwin then "dylib" else "so";
|
|
in
|
|
''
|
|
rm -r $out/lua/*.so
|
|
cp ${codesnap-lib}/lib/libgenerator.${extension} $out/lua/generator.so
|
|
'';
|
|
|
|
doInstallCheck = true;
|
|
nvimRequireCheck = "codesnap";
|
|
|
|
meta = {
|
|
homepage = "https://github.com/mistricky/codesnap.nvim/";
|
|
changelog = "https://github.com/mistricky/codesnap.nvim/releases/tag/v${version}";
|
|
};
|
|
};
|
|
|
|
command-t = super.command-t.overrideAttrs {
|
|
nativeBuildInputs = [
|
|
getconf
|
|
ruby
|
|
];
|
|
buildPhase = ''
|
|
substituteInPlace lua/wincent/commandt/lib/Makefile \
|
|
--replace '/bin/bash' 'bash' \
|
|
--replace xcrun ""
|
|
make build
|
|
rm ruby/command-t/ext/command-t/*.o
|
|
'';
|
|
nvimRequireCheck = "wincent.commandt";
|
|
};
|
|
|
|
competitest-nvim = super.competitest-nvim.overrideAttrs {
|
|
dependencies = [ self.nui-nvim ];
|
|
|
|
doInstallCheck = true;
|
|
nvimRequireCheck = "competitest";
|
|
};
|
|
|
|
compiler-explorer-nvim = super.compiler-explorer-nvim.overrideAttrs {
|
|
dependencies = with self; [ plenary-nvim ];
|
|
nvimRequireCheck = "compiler-explorer";
|
|
};
|
|
|
|
compiler-nvim = super.compiler-nvim.overrideAttrs {
|
|
dependencies = [ self.overseer-nvim ];
|
|
nvimRequireCheck = "compiler";
|
|
};
|
|
|
|
completion-buffers = super.completion-buffers.overrideAttrs {
|
|
dependencies = with self; [ completion-nvim ];
|
|
nvimRequireCheck = "completion_buffers";
|
|
};
|
|
|
|
completion-tabnine = super.completion-tabnine.overrideAttrs {
|
|
dependencies = with self; [ completion-nvim ];
|
|
buildInputs = [ tabnine ];
|
|
postFixup = ''
|
|
mkdir -p $target/binaries
|
|
ln -s ${tabnine}/bin/TabNine $target/binaries/TabNine_$(uname -s)
|
|
'';
|
|
};
|
|
|
|
completion-treesitter = super.completion-treesitter.overrideAttrs {
|
|
dependencies = with self; [
|
|
completion-nvim
|
|
nvim-treesitter
|
|
];
|
|
};
|
|
|
|
CopilotChat-nvim = super.CopilotChat-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
copilot-lua
|
|
plenary-nvim
|
|
];
|
|
nvimRequireCheck = "CopilotChat";
|
|
};
|
|
|
|
copilot-lualine = super.copilot-lualine.overrideAttrs {
|
|
dependencies = with self; [
|
|
copilot-lua
|
|
lualine-nvim
|
|
];
|
|
doInstallCheck = true;
|
|
nvimRequireCheck = "copilot-lualine";
|
|
};
|
|
|
|
copilot-vim = super.copilot-vim.overrideAttrs (old: {
|
|
postInstall = ''
|
|
substituteInPlace $out/autoload/copilot/client.vim \
|
|
--replace " let node = get(g:, 'copilot_node_command', ''\'''\')" \
|
|
" let node = get(g:, 'copilot_node_command', '${nodejs}/bin/node')"
|
|
'';
|
|
|
|
meta = old.meta // {
|
|
license = lib.licenses.unfree;
|
|
};
|
|
});
|
|
|
|
coq_nvim = super.coq_nvim.overrideAttrs {
|
|
passthru.python3Dependencies =
|
|
ps: with ps; [
|
|
pynvim-pp
|
|
pyyaml
|
|
std2
|
|
];
|
|
|
|
# We need some patches so it stops complaining about not being in a venv
|
|
patches = [ ./patches/coq_nvim/emulate-venv.patch ];
|
|
nvimRequireCheck = "coq";
|
|
};
|
|
|
|
cord-nvim =
|
|
let
|
|
version = "0-unstable-2024-09-26";
|
|
src = fetchFromGitHub {
|
|
owner = "vyfor";
|
|
repo = "cord.nvim";
|
|
rev = "a26b00d58c42174aadf975917b49cec67650545f";
|
|
hash = "sha256-jUxBvWnj0+axuw2SZ2zLzlhZS0tu+Bk8+wHtXENofkw=";
|
|
};
|
|
extension = if stdenv.hostPlatform.isDarwin then "dylib" else "so";
|
|
rustPackage = rustPlatform.buildRustPackage {
|
|
pname = "cord.nvim-rust";
|
|
inherit version src;
|
|
|
|
cargoHash = "sha256-M5mTdBACTaUVZhPpMOf1KQ3BcQpEoD2isAKRn+iAWjc=";
|
|
|
|
installPhase =
|
|
let
|
|
cargoTarget = stdenv.hostPlatform.rust.cargoShortTarget;
|
|
in
|
|
''
|
|
install -D target/${cargoTarget}/release/libcord.${extension} $out/lib/cord.${extension}
|
|
'';
|
|
};
|
|
in
|
|
buildVimPlugin {
|
|
pname = "cord.nvim";
|
|
inherit version src;
|
|
|
|
nativeBuildInputs = [
|
|
rustPackage
|
|
];
|
|
|
|
buildPhase = ''
|
|
install -D ${rustPackage}/lib/cord.${extension} cord.${extension}
|
|
'';
|
|
|
|
installPhase = ''
|
|
install -D cord $out/lua/cord.${extension}
|
|
'';
|
|
|
|
doInstallCheck = true;
|
|
nvimRequireCheck = "cord";
|
|
|
|
meta = {
|
|
homepage = "https://github.com/vyfor/cord.nvim";
|
|
};
|
|
};
|
|
|
|
cornelis = super.cornelis.overrideAttrs {
|
|
dependencies = with self; [ vim-textobj-user ];
|
|
opt = with self; [ vim-which-key ];
|
|
# Unconditionally use the cornelis binary provided by the top-level package:
|
|
patches = [ ./patches/cornelis/0001-Unconditionally-use-global-binary.patch ];
|
|
postInstall = ''
|
|
substituteInPlace $out/ftplugin/agda.vim \
|
|
--subst-var-by CORNELIS "${lib.getBin cornelis}/bin/cornelis"
|
|
'';
|
|
};
|
|
|
|
cpsm = super.cpsm.overrideAttrs {
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [
|
|
python3
|
|
boost
|
|
icu
|
|
ncurses
|
|
];
|
|
buildPhase = ''
|
|
patchShebangs .
|
|
export PY3=ON
|
|
./install.sh
|
|
'';
|
|
};
|
|
|
|
crates-nvim = super.crates-nvim.overrideAttrs {
|
|
dependencies = with self; [ plenary-nvim ];
|
|
nvimRequireCheck = "crates";
|
|
};
|
|
|
|
ctrlp-cmatcher = super.ctrlp-cmatcher.overrideAttrs {
|
|
# drop Python 2 patches
|
|
# https://github.com/JazzCore/ctrlp-cmatcher/pull/44
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "drop_python2_pt1.patch";
|
|
url = "https://github.com/JazzCore/ctrlp-cmatcher/commit/3abad6ea155a7f6e138e1de3ac5428177bfb0254.patch";
|
|
sha256 = "sha256-fn2puqYeJdPTdlTT4JjwVz7b3A+Xcuj/xtP6TETlB1U=";
|
|
})
|
|
(fetchpatch {
|
|
name = "drop_python2_pt2.patch";
|
|
url = "https://github.com/JazzCore/ctrlp-cmatcher/commit/385c8d02398dbb328b1a943a94e7109fe6473a08.patch";
|
|
sha256 = "sha256-yXKCq8sqO0Db/sZREuSeqKwKO71cmTsAvWftoOQehZo=";
|
|
})
|
|
];
|
|
buildInputs = with python3.pkgs; [
|
|
python3
|
|
setuptools
|
|
];
|
|
buildPhase = ''
|
|
patchShebangs .
|
|
./install.sh
|
|
'';
|
|
};
|
|
|
|
ddc-filter-matcher_head = super.ddc-filter-matcher_head.overrideAttrs {
|
|
dependencies = with self; [ ddc-vim ];
|
|
};
|
|
|
|
ddc-source-lsp = super.ddc-source-lsp.overrideAttrs {
|
|
dependencies = with self; [ ddc-vim ];
|
|
nvimRequireCheck = "ddc_source_lsp";
|
|
};
|
|
|
|
ddc-vim = super.ddc-vim.overrideAttrs {
|
|
dependencies = with self; [ denops-vim ];
|
|
};
|
|
|
|
ddc-filter-sorter_rank = super.ddc-filter-sorter_rank.overrideAttrs {
|
|
dependencies = with self; [ ddc-vim ];
|
|
};
|
|
|
|
ddc-ui-native = super.ddc-ui-native.overrideAttrs {
|
|
dependencies = with self; [ ddc-vim ];
|
|
};
|
|
|
|
ddc-ui-pum = super.ddc-ui-pum.overrideAttrs {
|
|
dependencies = with self; [
|
|
ddc-vim
|
|
pum-vim
|
|
];
|
|
};
|
|
|
|
defx-nvim = super.defx-nvim.overrideAttrs {
|
|
dependencies = with self; [ nvim-yarp ];
|
|
};
|
|
|
|
denops-vim = super.denops-vim.overrideAttrs {
|
|
postPatch = ''
|
|
# Use Nix's Deno instead of an arbitrary install
|
|
substituteInPlace ./autoload/denops.vim --replace "call denops#_internal#conf#define('denops#deno', 'deno')" "call denops#_internal#conf#define('denops#deno', '${deno}/bin/deno')"
|
|
'';
|
|
};
|
|
|
|
deoplete-fish = super.deoplete-fish.overrideAttrs {
|
|
dependencies = with self; [
|
|
deoplete-nvim
|
|
vim-fish
|
|
];
|
|
};
|
|
|
|
deoplete-go = super.deoplete-go.overrideAttrs {
|
|
nativeBuildInputs = [ (python3.withPackages (ps: with ps; [ setuptools ])) ];
|
|
buildPhase = ''
|
|
pushd ./rplugin/python3/deoplete/ujson
|
|
python3 setup.py build --build-base=$PWD/build --build-lib=$PWD/build
|
|
popd
|
|
find ./rplugin/ -name "ujson*.so" -exec mv -v {} ./rplugin/python3/ \;
|
|
'';
|
|
};
|
|
|
|
deoplete-khard = super.deoplete-khard.overrideAttrs {
|
|
dependencies = with self; [ deoplete-nvim ];
|
|
passthru.python3Dependencies = ps: [ (ps.toPythonModule khard) ];
|
|
meta = {
|
|
description = "Address-completion for khard via deoplete";
|
|
homepage = "https://github.com/nicoe/deoplete-khard";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ jorsn ];
|
|
};
|
|
};
|
|
|
|
diagram-nvim = super.diagram-nvim.overrideAttrs {
|
|
dependencies = with self; [ image-nvim ];
|
|
nvimRequireCheck = "diagram";
|
|
};
|
|
|
|
diffview-nvim = super.diffview-nvim.overrideAttrs {
|
|
dependencies = with self; [ plenary-nvim ];
|
|
|
|
doInstallCheck = true;
|
|
nvimRequireCheck = "diffview";
|
|
};
|
|
|
|
direnv-vim = super.direnv-vim.overrideAttrs (old: {
|
|
preFixup =
|
|
old.preFixup or ""
|
|
+ ''
|
|
substituteInPlace $out/autoload/direnv.vim \
|
|
--replace "let s:direnv_cmd = get(g:, 'direnv_cmd', 'direnv')" \
|
|
"let s:direnv_cmd = get(g:, 'direnv_cmd', '${lib.getBin direnv}/bin/direnv')"
|
|
'';
|
|
});
|
|
|
|
elixir-tools-nvim = super.elixir-tools-nvim.overrideAttrs {
|
|
dependencies = with self; [ plenary-nvim ];
|
|
fixupPhase = ''
|
|
patchShebangs $(find $out/bin/ -type f -not -name credo-language-server)
|
|
'';
|
|
nvimRequireCheck = "elixir";
|
|
};
|
|
|
|
executor-nvim = super.executor-nvim.overrideAttrs {
|
|
dependencies = with self; [ nui-nvim ];
|
|
nvimRequireCheck = "executor";
|
|
};
|
|
|
|
fcitx-vim = super.fcitx-vim.overrideAttrs {
|
|
passthru.python3Dependencies = ps: with ps; [ dbus-python ];
|
|
meta = {
|
|
description = "Keep and restore fcitx state when leaving/re-entering insert mode or search mode";
|
|
license = lib.licenses.mit;
|
|
};
|
|
};
|
|
|
|
flit-nvim = super.flit-nvim.overrideAttrs {
|
|
dependencies = with self; [ leap-nvim ];
|
|
nvimRequireCheck = "flit";
|
|
};
|
|
|
|
follow-md-links-nvim = super.follow-md-links-nvim.overrideAttrs {
|
|
dependencies = [ self.nvim-treesitter ];
|
|
};
|
|
|
|
forms = super.forms.overrideAttrs {
|
|
dependencies = [ self.self ];
|
|
};
|
|
|
|
fruzzy =
|
|
let
|
|
# until https://github.com/NixOS/nixpkgs/pull/67878 is merged, there's no better way to install nim libraries with nix
|
|
nimpy = fetchFromGitHub {
|
|
owner = "yglukhov";
|
|
repo = "nimpy";
|
|
rev = "4840d1e438985af759ddf0923e7a9250fd8ea0da";
|
|
sha256 = "0qqklvaajjqnlqm3rkk36pwwnn7x942mbca7nf2cvryh36yg4q5k";
|
|
};
|
|
binaryheap = fetchFromGitHub {
|
|
owner = "bluenote10";
|
|
repo = "nim-heap";
|
|
rev = "c38039309cb11391112571aa332df9c55f625b54";
|
|
sha256 = "05xdy13vm5n8dw2i366ppbznc4cfhq23rdcklisbaklz2jhdx352";
|
|
};
|
|
in
|
|
super.fruzzy.overrideAttrs (old: {
|
|
buildInputs = [ nim1 ];
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./patches/fruzzy/get_version.patch;
|
|
inherit (old) version;
|
|
})
|
|
];
|
|
configurePhase = ''
|
|
substituteInPlace Makefile \
|
|
--replace \
|
|
"nim c" \
|
|
"nim c --nimcache:$TMP --path:${nimpy} --path:${binaryheap}"
|
|
'';
|
|
buildPhase = ''
|
|
make build
|
|
'';
|
|
});
|
|
|
|
fuzzy-nvim = super.fuzzy-nvim.overrideAttrs {
|
|
dependencies = with self; [ telescope-fzf-native-nvim ];
|
|
nvimRequireCheck = "fuzzy_nvim";
|
|
};
|
|
|
|
fzf-checkout-vim = super.fzf-checkout-vim.overrideAttrs {
|
|
# The plugin has a makefile which tries to run tests in a docker container.
|
|
# This prevents it.
|
|
prePatch = ''
|
|
rm Makefile
|
|
'';
|
|
};
|
|
|
|
fzf-hoogle-vim = super.fzf-hoogle-vim.overrideAttrs (oa: {
|
|
# add this to your lua config to prevent the plugin from trying to write in the
|
|
# nix store:
|
|
# vim.g.hoogle_fzf_cache_file = vim.fn.stdpath('cache')..'/hoogle_cache.json'
|
|
propagatedBuildInputs = [
|
|
jq
|
|
gawk
|
|
];
|
|
dependencies = with self; [ fzf-vim ];
|
|
passthru = oa.passthru // {
|
|
|
|
initLua = "vim.g.hoogle_fzf_cache_file = vim.fn.stdpath('cache')..'/hoogle_cache.json";
|
|
};
|
|
});
|
|
|
|
fzf-lua = super.fzf-lua.overrideAttrs {
|
|
propagatedBuildInputs = [ fzf ];
|
|
# FIXME: address already in use
|
|
# nvimRequireCheck = "fzf-lua";
|
|
};
|
|
|
|
fzf-vim = super.fzf-vim.overrideAttrs {
|
|
dependencies = with self; [ fzfWrapper ];
|
|
};
|
|
|
|
# Mainly used as a dependency for fzf-vim. Wraps the fzf program as a vim
|
|
# plugin, since part of the fzf vim plugin is included in the main fzf
|
|
# program.
|
|
fzfWrapper = buildVimPlugin {
|
|
inherit (fzf) src version;
|
|
pname = "fzf";
|
|
postInstall = ''
|
|
ln -s ${fzf}/bin/fzf $target/bin/fzf
|
|
'';
|
|
};
|
|
|
|
ghcid = super.ghcid.overrideAttrs {
|
|
configurePhase = "cd plugins/nvim";
|
|
};
|
|
|
|
gitlinker-nvim = super.gitlinker-nvim.overrideAttrs {
|
|
dependencies = with self; [ plenary-nvim ];
|
|
nvimRequireCheck = "gitlinker";
|
|
};
|
|
|
|
gitsigns-nvim = super.gitsigns-nvim.overrideAttrs {
|
|
dependencies = with self; [ plenary-nvim ];
|
|
nvimRequireCheck = "gitsigns";
|
|
};
|
|
|
|
git-worktree-nvim = super.git-worktree-nvim.overrideAttrs {
|
|
dependencies = with super; [ plenary-nvim ];
|
|
nvimRequireCheck = "git-worktree";
|
|
};
|
|
|
|
guard-nvim = super.guard-nvim.overrideAttrs {
|
|
dependencies = with self; [ guard-collection ];
|
|
nvimRequireCheck = "guard";
|
|
};
|
|
|
|
hardhat-nvim = super.hardhat-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
overseer-nvim
|
|
plenary-nvim
|
|
];
|
|
|
|
doInstallCheck = true;
|
|
nvimRequireCheck = "hardhat";
|
|
};
|
|
|
|
harpoon = super.harpoon.overrideAttrs {
|
|
dependencies = with self; [ plenary-nvim ];
|
|
nvimRequireCheck = "harpoon";
|
|
};
|
|
|
|
harpoon2 = super.harpoon2.overrideAttrs {
|
|
dependencies = with self; [ plenary-nvim ];
|
|
nvimRequireCheck = "harpoon";
|
|
};
|
|
|
|
haskell-snippets-nvim = super.haskell-snippets-nvim.overrideAttrs {
|
|
dependencies = [ self.luasnip ];
|
|
nvimRequireCheck = "haskell-snippets";
|
|
};
|
|
|
|
haskell-scope-highlighting-nvim = super.haskell-scope-highlighting-nvim.overrideAttrs {
|
|
dependencies = with self; [ nvim-treesitter ];
|
|
nvimRequireCheck = "haskell-scope-highlighting";
|
|
};
|
|
|
|
haskell-tools-nvim = neovimUtils.buildNeovimPlugin {
|
|
luaAttr = luaPackages.haskell-tools-nvim;
|
|
nvimRequireCheck = "haskell-tools";
|
|
};
|
|
|
|
hex-nvim = super.hex-nvim.overrideAttrs {
|
|
postPatch = ''
|
|
substituteInPlace lua/hex.lua --replace xxd ${xxd}/bin/xxd
|
|
'';
|
|
nvimRequireCheck = "hex";
|
|
};
|
|
|
|
himalaya-vim = super.himalaya-vim.overrideAttrs {
|
|
buildInputs = [ himalaya ];
|
|
src = fetchFromSourcehut {
|
|
owner = "~soywod";
|
|
repo = "himalaya-vim";
|
|
rev = "v${himalaya.version}";
|
|
sha256 = "W+91hnNeS6WkDiR9r1s7xPTK9JlCWiVkI/nXVYbepY0=";
|
|
};
|
|
};
|
|
|
|
hunk-nvim = super.hunk-nvim.overrideAttrs {
|
|
dependencies = with self; [ nui-nvim ];
|
|
nvimRequireCheck = "hunk";
|
|
};
|
|
|
|
# https://hurl.dev/
|
|
hurl = buildVimPlugin {
|
|
pname = "hurl";
|
|
version = hurl.version;
|
|
# dontUnpack = true;
|
|
|
|
src = "${hurl.src}/contrib/vim";
|
|
};
|
|
|
|
idris2-nvim = super.idris2-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
nui-nvim
|
|
nvim-lspconfig
|
|
];
|
|
|
|
doInstallCheck = true;
|
|
nvimRequireCheck = "idris2";
|
|
};
|
|
|
|
image-nvim = super.image-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-treesitter
|
|
nvim-treesitter-parsers.markdown_inline
|
|
nvim-treesitter-parsers.norg
|
|
];
|
|
|
|
# Add magick to package.path
|
|
patches = [ ./patches/image-nvim/magick.patch ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace lua/image/magick.lua \
|
|
--replace @nix_magick@ ${luajitPackages.magick}
|
|
'';
|
|
|
|
nvimRequireCheck = "image";
|
|
};
|
|
|
|
intellitab-nvim = super.intellitab-nvim.overrideAttrs {
|
|
dependencies = [ self.nvim-treesitter ];
|
|
};
|
|
|
|
jedi-vim = super.jedi-vim.overrideAttrs {
|
|
# checking for python3 support in vim would be neat, too, but nobody else seems to care
|
|
buildInputs = [ python3.pkgs.jedi ];
|
|
meta = {
|
|
description = "code-completion for python using python-jedi";
|
|
license = lib.licenses.mit;
|
|
};
|
|
};
|
|
|
|
jellybeans-nvim = super.jellybeans-nvim.overrideAttrs {
|
|
dependencies = with self; [ lush-nvim ];
|
|
};
|
|
|
|
jupytext-nvim = super.jupytext-nvim.overrideAttrs {
|
|
passthru.python3Dependencies = ps: [ ps.jupytext ];
|
|
nvimRequireCheck = "jupytext";
|
|
};
|
|
|
|
kulala-nvim = super.kulala-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-treesitter
|
|
nvim-treesitter-parsers.http
|
|
];
|
|
buildInputs = [ curl ];
|
|
postPatch = ''
|
|
substituteInPlace lua/kulala/config/init.lua \
|
|
--replace 'curl_path = "curl"' 'curl_path = "${lib.getExe curl}"'
|
|
'';
|
|
nvimRequireCheck = "kulala";
|
|
};
|
|
|
|
LanguageClient-neovim =
|
|
let
|
|
version = "0.1.161";
|
|
LanguageClient-neovim-src = fetchFromGitHub {
|
|
owner = "autozimu";
|
|
repo = "LanguageClient-neovim";
|
|
rev = version;
|
|
sha256 = "Z9S2ie9RxJCIbmjSV/Tto4lK04cZfWmK3IAy8YaySVI=";
|
|
};
|
|
LanguageClient-neovim-bin = rustPlatform.buildRustPackage {
|
|
pname = "LanguageClient-neovim-bin";
|
|
inherit version;
|
|
src = LanguageClient-neovim-src;
|
|
|
|
cargoHash = "sha256-H34UqJ6JOwuSABdOup5yKeIwFrGc83TUnw1ggJEx9o4=";
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ];
|
|
|
|
# FIXME: Use impure version of CoreFoundation because of missing symbols.
|
|
# Undefined symbols for architecture x86_64: "_CFURLResourceIsReachable"
|
|
preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
|
export NIX_LDFLAGS="-F${CoreFoundation}/Library/Frameworks -framework CoreFoundation $NIX_LDFLAGS"
|
|
'';
|
|
};
|
|
in
|
|
buildVimPlugin {
|
|
pname = "LanguageClient-neovim";
|
|
inherit version;
|
|
src = LanguageClient-neovim-src;
|
|
|
|
propagatedBuildInputs = [ LanguageClient-neovim-bin ];
|
|
|
|
preFixup = ''
|
|
substituteInPlace "$out"/autoload/LanguageClient.vim \
|
|
--replace "let l:path = s:root . '/bin/'" "let l:path = '${LanguageClient-neovim-bin}' . '/bin/'"
|
|
'';
|
|
};
|
|
|
|
lazy-lsp-nvim = super.lazy-lsp-nvim.overrideAttrs {
|
|
dependencies = with self; [ nvim-lspconfig ];
|
|
nvimRequireCheck = "lazy-lsp";
|
|
};
|
|
|
|
lazy-nvim = super.lazy-nvim.overrideAttrs {
|
|
patches = [ ./patches/lazy-nvim/no-helptags.patch ];
|
|
nvimRequireCheck = "lazy";
|
|
};
|
|
|
|
lean-nvim = super.lean-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-lspconfig
|
|
plenary-nvim
|
|
];
|
|
nvimRequireCheck = "lean";
|
|
};
|
|
|
|
LeaderF = super.LeaderF.overrideAttrs {
|
|
nativeBuildInputs = [ python3.pkgs.setuptools ];
|
|
buildInputs = [ python3 ];
|
|
# rm */build/ to prevent dependencies on gcc
|
|
# strip the *.so to keep files small
|
|
buildPhase = ''
|
|
patchShebangs .
|
|
./install.sh
|
|
rm autoload/leaderf/fuzzyMatch_C/build/ -r
|
|
'';
|
|
stripDebugList = [ "autoload/leaderf/python" ];
|
|
};
|
|
|
|
leap-ast-nvim = super.leap-ast-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
leap-nvim
|
|
nvim-treesitter
|
|
];
|
|
nvimRequireCheck = "leap-ast";
|
|
};
|
|
|
|
leetcode-nvim = super.leetcode-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
nui-nvim
|
|
plenary-nvim
|
|
telescope-nvim
|
|
];
|
|
|
|
doInstallCheck = true;
|
|
nvimRequireCheck = "leetcode";
|
|
};
|
|
|
|
lens-vim = super.lens-vim.overrideAttrs {
|
|
# remove duplicate g:lens#animate in doc/lens.txt
|
|
# https://github.com/NixOS/nixpkgs/pull/105810#issuecomment-740007985
|
|
# https://github.com/camspiers/lens.vim/pull/40/files
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./patches/lens-vim/remove_duplicate_g_lens_animate.patch;
|
|
inherit languagetool;
|
|
})
|
|
];
|
|
};
|
|
|
|
lf-vim = super.lf-vim.overrideAttrs {
|
|
dependencies = with self; [ vim-floaterm ];
|
|
};
|
|
|
|
lightline-bufferline = super.lightline-bufferline.overrideAttrs {
|
|
dependencies = with self; [ nvim-web-devicons ];
|
|
};
|
|
|
|
lir-nvim = super.lir-nvim.overrideAttrs {
|
|
dependencies = with self; [ plenary-nvim ];
|
|
nvimRequireCheck = "lir";
|
|
};
|
|
|
|
lsp-progress-nvim = neovimUtils.buildNeovimPlugin {
|
|
luaAttr = luaPackages.lsp-progress-nvim;
|
|
nvimRequireCheck = "lsp-progress";
|
|
};
|
|
|
|
lspecho-nvim = super.lspecho-nvim.overrideAttrs {
|
|
meta.license = lib.licenses.mit;
|
|
nvimRequireCheck = "lspecho";
|
|
};
|
|
|
|
lualine-lsp-progress = super.lualine-lsp-progress.overrideAttrs {
|
|
dependencies = with self; [ lualine-nvim ];
|
|
};
|
|
|
|
luasnip = super.luasnip.overrideAttrs {
|
|
dependencies = [ luaPackages.jsregexp ];
|
|
nvimRequireCheck = "luasnip";
|
|
};
|
|
|
|
luasnip-latex-snippets-nvim = super.luasnip-latex-snippets-nvim.overrideAttrs {
|
|
dependencies = with self; [ luasnip ];
|
|
};
|
|
|
|
lz-n = neovimUtils.buildNeovimPlugin {
|
|
luaAttr = luaPackages.lz-n;
|
|
nvimRequireCheck = "lz.n";
|
|
};
|
|
|
|
lze = neovimUtils.buildNeovimPlugin {
|
|
luaAttr = luaPackages.lze;
|
|
nvimRequireCheck = "lze";
|
|
};
|
|
|
|
lzn-auto-require = neovimUtils.buildNeovimPlugin {
|
|
luaAttr = luaPackages.lzn-auto-require;
|
|
nvimRequireCheck = "lzn-auto-require.loader";
|
|
};
|
|
|
|
magma-nvim = super.magma-nvim.overrideAttrs {
|
|
passthru.python3Dependencies =
|
|
ps: with ps; [
|
|
pynvim
|
|
jupyter-client
|
|
ueberzug
|
|
pillow
|
|
cairosvg
|
|
plotly
|
|
ipykernel
|
|
pyperclip
|
|
pnglatex
|
|
];
|
|
};
|
|
|
|
markdown-preview-nvim =
|
|
let
|
|
# We only need its dependencies `node-modules`.
|
|
nodeDep = mkYarnModules rec {
|
|
inherit (super.markdown-preview-nvim) pname version;
|
|
packageJSON = ./markdown-preview-nvim/package.json;
|
|
yarnLock = "${super.markdown-preview-nvim.src}/yarn.lock";
|
|
offlineCache = fetchYarnDeps {
|
|
inherit yarnLock;
|
|
hash = "sha256-kzc9jm6d9PJ07yiWfIOwqxOTAAydTpaLXVK6sEWM8gg=";
|
|
};
|
|
};
|
|
in
|
|
super.markdown-preview-nvim.overrideAttrs {
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./markdown-preview-nvim/fix-node-paths.patch;
|
|
node = "${nodejs}/bin/node";
|
|
})
|
|
];
|
|
postInstall = ''
|
|
ln -s ${nodeDep}/node_modules $out/app
|
|
'';
|
|
|
|
nativeBuildInputs = [ nodejs ];
|
|
doInstallCheck = true;
|
|
installCheckPhase = ''
|
|
node $out/app/index.js --version
|
|
'';
|
|
};
|
|
|
|
markid = super.markid.overrideAttrs {
|
|
dependencies = with super; [ nvim-treesitter ];
|
|
};
|
|
|
|
mason-lspconfig-nvim = super.mason-lspconfig-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
mason-nvim
|
|
nvim-lspconfig
|
|
];
|
|
nvimRequireCheck = "mason-lspconfig";
|
|
};
|
|
|
|
mason-tool-installer-nvim = super.mason-tool-installer-nvim.overrideAttrs {
|
|
dependencies = with self; [ mason-nvim ];
|
|
nvimRequireCheck = "mason-tool-installer";
|
|
};
|
|
|
|
meson = buildVimPlugin {
|
|
inherit (meson) pname version src;
|
|
preInstall = "cd data/syntax-highlighting/vim";
|
|
meta.maintainers = with lib.maintainers; [ vcunat ];
|
|
};
|
|
|
|
middleclass = neovimUtils.buildNeovimPlugin {
|
|
luaAttr = luaPackages.middleclass;
|
|
nvimRequireCheck = "middleclass";
|
|
};
|
|
|
|
minimap-vim = super.minimap-vim.overrideAttrs {
|
|
preFixup = ''
|
|
substituteInPlace $out/plugin/minimap.vim \
|
|
--replace "code-minimap" "${code-minimap}/bin/code-minimap"
|
|
substituteInPlace $out/bin/minimap_generator.sh \
|
|
--replace "code-minimap" "${code-minimap}/bin/code-minimap"
|
|
'';
|
|
|
|
doInstallCheck = true;
|
|
vimCommandCheck = "MinimapToggle";
|
|
};
|
|
|
|
minsnip-nvim = buildVimPlugin {
|
|
pname = "minsnip.nvim";
|
|
version = "2022-01-04";
|
|
src = fetchFromGitHub {
|
|
owner = "jose-elias-alvarez";
|
|
repo = "minsnip.nvim";
|
|
rev = "6ae2f3247b3a2acde540ccef2e843fdfcdfebcee";
|
|
sha256 = "1db5az5civ2bnqg7v3g937mn150ys52258c3glpvdvyyasxb4iih";
|
|
};
|
|
meta.homepage = "https://github.com/jose-elias-alvarez/minsnip.nvim/";
|
|
};
|
|
|
|
moveline-nvim =
|
|
let
|
|
version = "2024-07-25";
|
|
src = fetchFromGitHub {
|
|
owner = "willothy";
|
|
repo = "moveline.nvim";
|
|
rev = "9f67f4b9e752a87eea8205f0279f261a16c733d8";
|
|
sha256 = "sha256-B4t5+Q4Urx5bGm8glNpYkHhpp/rAhz+lDd2EpWFUYoY=";
|
|
};
|
|
moveline-lib = rustPlatform.buildRustPackage {
|
|
inherit src version;
|
|
pname = "moveline-lib";
|
|
cargoHash = "sha256-e9QB4Rfm+tFNrLAHN/nYUQ5PiTET8knQQIQkMH3UFkU=";
|
|
};
|
|
in
|
|
buildVimPlugin {
|
|
inherit src version;
|
|
pname = "moveline-nvim";
|
|
preInstall = ''
|
|
mkdir -p lua
|
|
ln -s ${moveline-lib}/lib/libmoveline.so lua/moveline.so
|
|
'';
|
|
meta = {
|
|
description = "Neovim plugin for moving lines up and down";
|
|
homepage = "https://github.com/willothy/moveline.nvim";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ redxtech ];
|
|
badPlatforms = [
|
|
"aarch64-darwin"
|
|
"x86_64-darwin"
|
|
];
|
|
};
|
|
nvimRequireCheck = "moveline";
|
|
};
|
|
|
|
multicursors-nvim = super.multicursors-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-treesitter
|
|
hydra-nvim
|
|
];
|
|
nvimRequireCheck = "multicursors";
|
|
};
|
|
|
|
ncm2 = super.ncm2.overrideAttrs {
|
|
dependencies = with self; [ nvim-yarp ];
|
|
nvimRequireCheck = "ncm2";
|
|
};
|
|
|
|
ncm2-jedi = super.ncm2-jedi.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-yarp
|
|
ncm2
|
|
];
|
|
passthru.python3Dependencies = ps: with ps; [ jedi ];
|
|
};
|
|
|
|
ncm2-neoinclude = super.ncm2-neoinclude.overrideAttrs {
|
|
dependencies = with self; [ neoinclude-vim ];
|
|
};
|
|
|
|
ncm2-neosnippet = super.ncm2-neosnippet.overrideAttrs {
|
|
dependencies = with self; [ neosnippet-vim ];
|
|
};
|
|
|
|
ncm2-syntax = super.ncm2-syntax.overrideAttrs {
|
|
dependencies = with self; [ neco-syntax ];
|
|
};
|
|
|
|
ncm2-ultisnips = super.ncm2-ultisnips.overrideAttrs {
|
|
dependencies = with self; [ ultisnips ];
|
|
};
|
|
|
|
neoconf-nvim = super.neoconf-nvim.overrideAttrs {
|
|
dependencies = with self; [ nvim-lspconfig ];
|
|
|
|
doInstallCheck = true;
|
|
nvimRequireCheck = "neoconf";
|
|
};
|
|
|
|
neogit = super.neogit.overrideAttrs {
|
|
dependencies = with self; [ plenary-nvim ];
|
|
nvimRequireCheck = "neogit";
|
|
};
|
|
|
|
neorg = neovimUtils.buildNeovimPlugin {
|
|
luaAttr = luaPackages.neorg;
|
|
|
|
doInstallCheck = true;
|
|
nvimRequireCheck = "neorg";
|
|
};
|
|
|
|
neotest = super.neotest.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-nio
|
|
plenary-nvim
|
|
];
|
|
nvimRequirecheck = "neotest";
|
|
};
|
|
|
|
neotest-gradle = super.neotest-gradle.overrideAttrs {
|
|
dependencies = with self; [ plenary-nvim ];
|
|
nvimRequirecheck = "neotest-gradle";
|
|
};
|
|
|
|
neotest-golang = super.neotest-golang.overrideAttrs {
|
|
dependencies = [ self.nvim-dap-go ];
|
|
nvimRequirecheck = "neotest-golang";
|
|
};
|
|
|
|
neotest-gtest = super.neotest-gtest.overrideAttrs {
|
|
dependencies = with self; [
|
|
neotest
|
|
nvim-nio
|
|
plenary-nvim
|
|
];
|
|
nvimRequirecheck = "neotest-gtest";
|
|
};
|
|
|
|
neotest-java = super.neotest-java.overrideAttrs {
|
|
dependencies = with self; [
|
|
neotest
|
|
nvim-nio
|
|
plenary-nvim
|
|
];
|
|
nvimRequirecheck = "neotest-java";
|
|
};
|
|
|
|
neotest-jest = super.neotest-jest.overrideAttrs {
|
|
dependencies = with self; [
|
|
neotest
|
|
nvim-nio
|
|
];
|
|
nvimRequirecheck = "neotest-jest";
|
|
};
|
|
|
|
neotest-pest = super.neotest-pest.overrideAttrs {
|
|
dependencies = with self; [
|
|
neotest
|
|
nvim-nio
|
|
plenary-nvim
|
|
];
|
|
nvimRequirecheck = "neotest-pest";
|
|
};
|
|
|
|
neotest-playwright = super.neotest-playwright.overrideAttrs {
|
|
dependencies = [ self.telescope-nvim ];
|
|
nvimRequirecheck = "neotest-playwright";
|
|
};
|
|
|
|
neotest-plenary = super.neotest-plenary.overrideAttrs {
|
|
dependencies = with self; [
|
|
neotest
|
|
nvim-nio
|
|
plenary-nvim
|
|
];
|
|
nvimRequirecheck = "neotest-plenary";
|
|
};
|
|
|
|
neotest-python = super.neotest-python.overrideAttrs {
|
|
dependencies = with self; [
|
|
neotest
|
|
nvim-nio
|
|
plenary-nvim
|
|
];
|
|
nvimRequirecheck = "neotest-python";
|
|
};
|
|
|
|
neotest-scala = super.neotest-scala.overrideAttrs {
|
|
dependencies = with self; [
|
|
neotest
|
|
nvim-nio
|
|
];
|
|
nvimRequirecheck = "neotest-scala";
|
|
};
|
|
|
|
neotest-testthat = super.neotest-testthat.overrideAttrs {
|
|
dependencies = with self; [
|
|
neotest
|
|
nvim-nio
|
|
plenary-nvim
|
|
];
|
|
nvimRequirecheck = "neotest-testthat";
|
|
};
|
|
|
|
neotest-vitest = super.neotest-vitest.overrideAttrs {
|
|
dependencies = with self; [
|
|
neotest
|
|
nvim-nio
|
|
];
|
|
nvimRequirecheck = "neotest-vitest";
|
|
};
|
|
|
|
neo-tree-nvim = super.neo-tree-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
plenary-nvim
|
|
nui-nvim
|
|
];
|
|
nvimRequirecheck = "neo-tree";
|
|
};
|
|
|
|
neuron-nvim = super.neuron-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
plenary-nvim
|
|
telescope-nvim
|
|
];
|
|
nvimRequireCheck = "neuron";
|
|
};
|
|
|
|
noctis-nvim = super.noctis-nvim.overrideAttrs {
|
|
dependencies = [ self.lush-nvim ];
|
|
};
|
|
|
|
noice-nvim = super.noice-nvim.overrideAttrs {
|
|
dependencies = with self; [ nui-nvim ];
|
|
nvimRequirecheck = "noice";
|
|
};
|
|
|
|
none-ls-nvim = super.none-ls-nvim.overrideAttrs {
|
|
dependencies = [ self.plenary-nvim ];
|
|
nvimRequireCheck = "null-ls";
|
|
};
|
|
|
|
notmuch-vim = notmuch.vim;
|
|
|
|
NotebookNavigator-nvim = super.NotebookNavigator-nvim.overrideAttrs {
|
|
nvimRequireCheck = "notebook-navigator";
|
|
};
|
|
|
|
nterm-nvim = super.nterm-nvim.overrideAttrs {
|
|
dependencies = [ self.aniseed ];
|
|
};
|
|
|
|
null-ls-nvim = super.null-ls-nvim.overrideAttrs {
|
|
dependencies = with self; [ plenary-nvim ];
|
|
nvimRequireCheck = "null-ls";
|
|
};
|
|
|
|
nvim-biscuits = super.nvim-biscuits.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-treesitter
|
|
plenary-nvim
|
|
];
|
|
};
|
|
|
|
nvim-coverage = super.nvim-coverage.overrideAttrs {
|
|
dependencies = with self; [ plenary-nvim ];
|
|
nvimRequireCheck = "coverage";
|
|
};
|
|
|
|
nvim-dap-python = super.nvim-dap-python.overrideAttrs {
|
|
dependencies = with self; [ nvim-dap ];
|
|
nvimRequireCheck = "dap-python";
|
|
};
|
|
|
|
nvim-dap-rego = super.nvim-dap-rego.overrideAttrs {
|
|
dependencies = with self; [ nvim-dap ];
|
|
nvimRequireCheck = "dap-rego";
|
|
};
|
|
|
|
nvim-dap-ui = super.nvim-dap-ui.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-dap
|
|
nvim-nio
|
|
];
|
|
|
|
doInstallCheck = true;
|
|
nvimRequireCheck = "dapui";
|
|
};
|
|
|
|
nvim-dap-rr = super.nvim-dap-rr.overrideAttrs {
|
|
dependencies = [ self.nvim-dap ];
|
|
nvimRequireCheck = "nvim-dap-rr";
|
|
};
|
|
|
|
nvim-genghis = super.nvim-genghis.overrideAttrs {
|
|
dependencies = [ self.dressing-nvim ];
|
|
|
|
doInstallCheck = true;
|
|
nvimRequireCheck = "genghis";
|
|
};
|
|
|
|
nvim-gps = super.nvim-gps.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-treesitter
|
|
];
|
|
};
|
|
|
|
nvim-lsp-file-operations = super.nvim-lsp-file-operations.overrideAttrs {
|
|
dependencies = [ self.plenary-nvim ];
|
|
nvimRequireCheck = "lsp-file-operations";
|
|
};
|
|
|
|
nvim-lsputils = super.nvim-lsputils.overrideAttrs {
|
|
dependencies = with self; [ popfix ];
|
|
nvimRequireCheck = "lsputil.codeAction";
|
|
};
|
|
|
|
nvim-metals = super.nvim-metals.overrideAttrs {
|
|
dependencies = with self; [ plenary-nvim ];
|
|
dontBuild = true;
|
|
nvimRequireCheck = "metals";
|
|
};
|
|
|
|
nvim-navbuddy = super.nvim-navbuddy.overrideAttrs {
|
|
dependencies = with self; [
|
|
nui-nvim
|
|
nvim-lspconfig
|
|
nvim-navic
|
|
];
|
|
nvimRequireCheck = "nvim-navbuddy";
|
|
};
|
|
|
|
nvim-nu = super.nvim-nu.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-treesitter
|
|
none-ls-nvim
|
|
];
|
|
};
|
|
|
|
vim-mediawiki-editor = super.vim-mediawiki-editor.overrideAttrs {
|
|
passthru.python3Dependencies = [ python3.pkgs.mwclient ];
|
|
};
|
|
|
|
nvim-dbee = super.nvim-dbee.overrideAttrs (
|
|
oa:
|
|
let
|
|
dbee-go = buildGoModule {
|
|
name = "nvim-dbee";
|
|
src = "${oa.src}/dbee";
|
|
vendorHash = "sha256-U/3WZJ/+Bm0ghjeNUILsnlZnjIwk3ySaX3Rd4L9Z62A=";
|
|
buildInputs = [
|
|
arrow-cpp
|
|
duckdb
|
|
];
|
|
};
|
|
in
|
|
{
|
|
dependencies = [ self.nui-nvim ];
|
|
|
|
# nvim-dbee looks for the go binary in paths returned bu M.dir() and M.bin() defined in lua/dbee/install/init.lua
|
|
postPatch = ''
|
|
substituteInPlace lua/dbee/install/init.lua \
|
|
--replace-fail 'return vim.fn.stdpath("data") .. "/dbee/bin"' 'return "${dbee-go}/bin"'
|
|
'';
|
|
|
|
preFixup = ''
|
|
mkdir $target/bin
|
|
ln -s ${dbee-go}/bin/dbee $target/bin/dbee
|
|
'';
|
|
|
|
meta.platforms = lib.platforms.linux;
|
|
nvimRequireCheck = "dbee";
|
|
}
|
|
);
|
|
|
|
nvim-navic = super.nvim-navic.overrideAttrs {
|
|
dependencies = [ self.nvim-lspconfig ];
|
|
nvimRequireCheck = "nvim-navic";
|
|
};
|
|
|
|
nvim-spectre = super.nvim-spectre.overrideAttrs (
|
|
old:
|
|
let
|
|
spectre_oxi = rustPlatform.buildRustPackage {
|
|
pname = "spectre_oxi";
|
|
inherit (old) version src;
|
|
sourceRoot = "${old.src.name}/spectre_oxi";
|
|
|
|
cargoHash = "sha256-yYUbfqkICsGDKexYjfhXfpIoT1+QrZQJPpKzk+gwm+s=";
|
|
|
|
preCheck = ''
|
|
mkdir tests/tmp/
|
|
'';
|
|
|
|
checkFlags = [
|
|
# Flaky test (https://github.com/nvim-pack/nvim-spectre/issues/244)
|
|
"--skip=tests::test_replace_simple"
|
|
];
|
|
};
|
|
in
|
|
{
|
|
dependencies = with self; [ plenary-nvim ];
|
|
postInstall = ''
|
|
ln -s ${spectre_oxi}/lib/libspectre_oxi.* $out/lua/spectre_oxi.so
|
|
'';
|
|
nvimRequireCheck = "spectre";
|
|
}
|
|
);
|
|
|
|
nvim-scissors = super.nvim-scissors.overrideAttrs {
|
|
nvimRequireCheck = "scissors";
|
|
};
|
|
|
|
nvim-teal-maker = super.nvim-teal-maker.overrideAttrs {
|
|
postPatch = ''
|
|
substituteInPlace lua/tealmaker/init.lua \
|
|
--replace cyan ${luaPackages.cyan}/bin/cyan
|
|
'';
|
|
vimCommandCheck = "TealBuild";
|
|
};
|
|
|
|
nvim-treesitter = super.nvim-treesitter.overrideAttrs (
|
|
callPackage ./nvim-treesitter/overrides.nix { } self super
|
|
);
|
|
|
|
nvim-treesitter-endwise = super.nvim-treesitter-endwise.overrideAttrs {
|
|
dependencies = [ self.nvim-treesitter ];
|
|
};
|
|
|
|
nvim-treesitter-pairs = super.nvim-treesitter-pairs.overrideAttrs {
|
|
dependencies = [ self.nvim-treesitter ];
|
|
};
|
|
|
|
nvim-treesitter-parsers = lib.recurseIntoAttrs self.nvim-treesitter.grammarPlugins;
|
|
|
|
nvim-treesitter-pyfold = super.nvim-treesitter-pyfold.overrideAttrs {
|
|
dependencies = [ self.nvim-treesitter ];
|
|
};
|
|
|
|
nvim-treesitter-refactor = super.nvim-treesitter-refactor.overrideAttrs {
|
|
dependencies = [ self.nvim-treesitter ];
|
|
};
|
|
|
|
nvim-treesitter-sexp = super.nvim-treesitter-sexp.overrideAttrs {
|
|
nvimRequireCheck = "treesitter-sexp";
|
|
};
|
|
|
|
nvim-treesitter-textobjects = super.nvim-treesitter-textobjects.overrideAttrs {
|
|
dependencies = [ self.nvim-treesitter ];
|
|
};
|
|
|
|
nvim-treesitter-textsubjects = super.nvim-treesitter-textsubjects.overrideAttrs {
|
|
dependencies = [ self.nvim-treesitter ];
|
|
};
|
|
|
|
nvim-ufo = super.nvim-ufo.overrideAttrs {
|
|
dependencies = with self; [ promise-async ];
|
|
nvimRequireCheck = "ufo";
|
|
};
|
|
|
|
nvzone-menu = super.nvzone-menu.overrideAttrs {
|
|
dependencies = with self; [ nvzone-volt ];
|
|
};
|
|
|
|
nvzone-minty = super.nvzone-minty.overrideAttrs {
|
|
dependencies = with self; [ nvzone-volt ];
|
|
};
|
|
|
|
obsidian-nvim = super.obsidian-nvim.overrideAttrs {
|
|
dependencies = with self; [ plenary-nvim ];
|
|
nvimRequireCheck = "obsidian";
|
|
};
|
|
|
|
octo-nvim = super.octo-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
telescope-nvim
|
|
plenary-nvim
|
|
];
|
|
nvimRequireCheck = "octo";
|
|
};
|
|
|
|
ollama-nvim = super.ollama-nvim.overrideAttrs {
|
|
dependencies = [ self.plenary-nvim ];
|
|
nvimRequireCheck = "ollama";
|
|
};
|
|
|
|
onehalf = super.onehalf.overrideAttrs {
|
|
configurePhase = "cd vim";
|
|
};
|
|
|
|
one-nvim = super.one-nvim.overrideAttrs {
|
|
# E5108: /lua/one-nvim.lua:14: Unknown option 't_Co'
|
|
# https://github.com/Th3Whit3Wolf/one-nvim/issues/23
|
|
meta.broken = true;
|
|
};
|
|
|
|
# The plugin depends on either skim-vim or fzf-vim, but we don't want to force the user so we
|
|
# avoid choosing one of them and leave it to the user
|
|
openscad-nvim = super.openscad-nvim.overrideAttrs {
|
|
buildInputs = [
|
|
zathura
|
|
htop
|
|
openscad
|
|
];
|
|
|
|
# FIXME: cant find plugin root dir
|
|
# nvimRequireCheck = "openscad";
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./patches/openscad.nvim/program_paths.patch;
|
|
htop = lib.getExe htop;
|
|
openscad = lib.getExe openscad;
|
|
zathura = lib.getExe zathura;
|
|
})
|
|
];
|
|
};
|
|
|
|
orgmode = super.orgmode.overrideAttrs {
|
|
dependencies = with self; [ (nvim-treesitter.withPlugins (p: [ p.org ])) ];
|
|
nvimRequireCheck = "orgmode";
|
|
};
|
|
|
|
otter-nvim = super.otter-nvim.overrideAttrs {
|
|
dependencies = [ self.nvim-lspconfig ];
|
|
nvimRequirecheck = "otter";
|
|
};
|
|
|
|
overseer-nvim = super.overseer-nvim.overrideAttrs {
|
|
doCheck = true;
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
plugins=.testenv/data/nvim/site/pack/plugins/start
|
|
mkdir -p "$plugins"
|
|
ln -s ${self.plenary-nvim} "$plugins/plenary.nvim"
|
|
bash run_tests.sh
|
|
rm -r .testenv
|
|
|
|
runHook postCheck
|
|
'';
|
|
nvimRequireCheck = "overseer";
|
|
};
|
|
|
|
inherit parinfer-rust;
|
|
|
|
parpar-nvim = super.parpar-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-parinfer
|
|
nvim-paredit
|
|
nvim-treesitter
|
|
];
|
|
};
|
|
|
|
phpactor = buildVimPlugin {
|
|
inherit (phpactor)
|
|
pname
|
|
src
|
|
meta
|
|
version
|
|
;
|
|
postPatch = ''
|
|
substituteInPlace plugin/phpactor.vim \
|
|
--replace "g:phpactorpath = expand('<sfile>:p:h') . '/..'" "g:phpactorpath = '${phpactor}'"
|
|
'';
|
|
};
|
|
|
|
playground = super.playground.overrideAttrs {
|
|
dependencies = with self; [
|
|
# we need the 'query' grammer to make
|
|
(nvim-treesitter.withPlugins (p: [ p.query ]))
|
|
];
|
|
nvimRequireCheck = "nvim-treesitter-playground";
|
|
};
|
|
|
|
plenary-nvim = super.plenary-nvim.overrideAttrs {
|
|
postPatch = ''
|
|
sed -Ei lua/plenary/curl.lua \
|
|
-e 's@(command\s*=\s*")curl(")@\1${curl}/bin/curl\2@'
|
|
'';
|
|
|
|
doInstallCheck = true;
|
|
nvimRequireCheck = "plenary";
|
|
};
|
|
|
|
Preview-nvim = super.Preview-nvim.overrideAttrs {
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./patches/preview-nvim/hardcode-mdt-binary-path.patch;
|
|
mdt = lib.getExe md-tui;
|
|
})
|
|
];
|
|
};
|
|
|
|
range-highlight-nvim = super.range-highlight-nvim.overrideAttrs {
|
|
dependencies = with self; [ cmd-parser-nvim ];
|
|
nvimRequireCheck = "range-highlight";
|
|
};
|
|
|
|
ranger-nvim = super.ranger-nvim.overrideAttrs {
|
|
patches = [ ./patches/ranger.nvim/fix-paths.patch ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace lua/ranger-nvim.lua --replace '@ranger@' ${ranger}/bin/ranger
|
|
'';
|
|
nvimRequireCheck = "ranger-nvim";
|
|
};
|
|
|
|
aider-nvim = super.aider-nvim.overrideAttrs {
|
|
patches = [ ./patches/aider.nvim/fix-paths.patch ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace lua/aider.lua --replace '@aider@' ${aider-chat}/bin/aider
|
|
substituteInPlace lua/helpers.lua --replace '@aider@' ${aider-chat}/bin/aider
|
|
'';
|
|
nvimRequireCheck = "aider";
|
|
};
|
|
|
|
refactoring-nvim = super.refactoring-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-treesitter
|
|
plenary-nvim
|
|
];
|
|
nvimRequireCheck = "refactoring";
|
|
};
|
|
|
|
# needs "http" and "json" treesitter grammars too
|
|
rest-nvim = super.rest-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
plenary-nvim
|
|
(nvim-treesitter.withPlugins (p: [
|
|
p.http
|
|
p.json
|
|
]))
|
|
];
|
|
nvimRequireCheck = "rest-nvim";
|
|
};
|
|
|
|
rocks-nvim = neovimUtils.buildNeovimPlugin {
|
|
luaAttr = luaPackages.rocks-nvim;
|
|
nvimRequireCheck = "rocks";
|
|
};
|
|
|
|
rocks-config-nvim = neovimUtils.buildNeovimPlugin {
|
|
luaAttr = luaPackages.rocks-config-nvim;
|
|
nvimRequireCheck = "rocks-config";
|
|
};
|
|
|
|
roslyn-nvim = super.roslyn-nvim.overrideAttrs {
|
|
dependencies = with self; [ nvim-lspconfig ];
|
|
nvimRequireCheck = "roslyn";
|
|
};
|
|
|
|
rtp-nvim = neovimUtils.buildNeovimPlugin {
|
|
luaAttr = luaPackages.rtp-nvim;
|
|
nvimRequireCheck = "rtp_nvim";
|
|
};
|
|
|
|
rustaceanvim = neovimUtils.buildNeovimPlugin {
|
|
luaAttr = luaPackages.rustaceanvim;
|
|
nvimRequireCheck = "rustaceanvim";
|
|
};
|
|
|
|
scretch-nvim = super.scretch-nvim.overrideAttrs {
|
|
nvimRequireCheck = "scretch";
|
|
};
|
|
|
|
sg-nvim = super.sg-nvim.overrideAttrs (
|
|
old:
|
|
let
|
|
sg-nvim-rust = rustPlatform.buildRustPackage {
|
|
pname = "sg-nvim-rust";
|
|
inherit (old) version src;
|
|
|
|
cargoHash = "sha256-7Bo0DSRqxA7kgNuyuWw24r3PsP92y9h98SHFtIhG+Gs=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs =
|
|
[ openssl ]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
darwin.apple_sdk.frameworks.Security
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
|
];
|
|
|
|
prePatch = ''
|
|
rm .cargo/config.toml
|
|
'';
|
|
|
|
env.OPENSSL_NO_VENDOR = true;
|
|
|
|
cargoBuildFlags = [ "--workspace" ];
|
|
|
|
# tests are broken
|
|
doCheck = false;
|
|
};
|
|
in
|
|
{
|
|
dependencies = with self; [ plenary-nvim ];
|
|
postInstall = ''
|
|
mkdir -p $out/target/debug
|
|
ln -s ${sg-nvim-rust}/{bin,lib}/* $out/target/debug
|
|
'';
|
|
nvimRequireCheck = "sg";
|
|
}
|
|
);
|
|
|
|
skim = buildVimPlugin {
|
|
pname = "skim";
|
|
inherit (skim) version;
|
|
src = skim.vim;
|
|
};
|
|
|
|
skim-vim = super.skim-vim.overrideAttrs {
|
|
dependencies = [ self.skim ];
|
|
};
|
|
|
|
smart-open-nvim = super.smart-open-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
telescope-nvim
|
|
sqlite-lua
|
|
];
|
|
};
|
|
|
|
sniprun =
|
|
let
|
|
version = "1.3.16";
|
|
src = fetchFromGitHub {
|
|
owner = "michaelb";
|
|
repo = "sniprun";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-2rVeBUkdLXUiHkd8slyiLTYQBKwgMQvIi/uyCToVBYA=";
|
|
};
|
|
sniprun-bin = rustPlatform.buildRustPackage {
|
|
pname = "sniprun-bin";
|
|
inherit version src;
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
|
darwin.apple_sdk.frameworks.Security
|
|
];
|
|
|
|
cargoHash = "sha256-eZcWS+DWec0V9G6hBnZRUNcb3uZeSiBhn4Ed9KodFV8=";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/sniprun \
|
|
--prefix PATH ${
|
|
lib.makeBinPath [
|
|
bashInteractive
|
|
coreutils
|
|
curl
|
|
gnugrep
|
|
gnused
|
|
procps
|
|
]
|
|
}
|
|
'';
|
|
|
|
doCheck = false;
|
|
};
|
|
in
|
|
buildVimPlugin {
|
|
pname = "sniprun";
|
|
inherit version src;
|
|
|
|
patches = [ ./patches/sniprun/fix-paths.patch ];
|
|
postPatch = ''
|
|
substituteInPlace lua/sniprun.lua --replace '@sniprun_bin@' ${sniprun-bin}
|
|
'';
|
|
|
|
propagatedBuildInputs = [ sniprun-bin ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/michaelb/sniprun/";
|
|
changelog = "https://github.com/michaelb/sniprun/blob/v${version}/CHANGELOG.md";
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
|
};
|
|
nvimRequireCheck = "sniprun";
|
|
};
|
|
|
|
# The GitHub repository returns 404, which breaks the update script
|
|
Spacegray-vim = buildVimPlugin {
|
|
pname = "Spacegray.vim";
|
|
version = "2021-07-06";
|
|
src = fetchFromGitHub {
|
|
owner = "ackyshake";
|
|
repo = "Spacegray.vim";
|
|
rev = "c699ca10ed421c462bd1c87a158faaa570dc8e28";
|
|
sha256 = "0ma8w6p5jh6llka49x5j5ql8fmhv0bx5hhsn5b2phak79yqg1k61";
|
|
};
|
|
meta.homepage = "https://github.com/ackyshake/Spacegray.vim/";
|
|
};
|
|
|
|
sqlite-lua = super.sqlite-lua.overrideAttrs (
|
|
oa:
|
|
let
|
|
libsqlite = "${sqlite.out}/lib/libsqlite3${stdenv.hostPlatform.extensions.sharedLibrary}";
|
|
in
|
|
{
|
|
postPatch = ''
|
|
substituteInPlace lua/sqlite/defs.lua \
|
|
--replace-fail "path = vim.g.sqlite_clib_path" "path = vim.g.sqlite_clib_path or '${lib.escapeShellArg libsqlite}'"
|
|
'';
|
|
|
|
passthru = oa.passthru // {
|
|
initLua = ''vim.g.sqlite_clib_path = "${libsqlite}"'';
|
|
};
|
|
nvimRequireCheck = "sqlite";
|
|
}
|
|
);
|
|
|
|
ssr = super.ssr-nvim.overrideAttrs {
|
|
dependencies = with self; [ nvim-treesitter ];
|
|
nvimRequireCheck = "ssr";
|
|
};
|
|
|
|
startup-nvim = super.startup-nvim.overrideAttrs {
|
|
dependencies = with super; [ plenary-nvim ];
|
|
nvimRequireCheck = "startup";
|
|
};
|
|
|
|
statix = buildVimPlugin rec {
|
|
inherit (statix) pname src meta;
|
|
version = "0.1.0";
|
|
postPatch = ''
|
|
# check that version is up to date
|
|
grep 'pname = "statix-vim"' -A 1 flake.nix \
|
|
| grep -F 'version = "${version}"'
|
|
|
|
cd vim-plugin
|
|
substituteInPlace ftplugin/nix.vim --replace statix ${statix}/bin/statix
|
|
substituteInPlace plugin/statix.vim --replace statix ${statix}/bin/statix
|
|
'';
|
|
};
|
|
|
|
stylish-nvim = super.stylish-nvim.overrideAttrs {
|
|
postPatch = ''
|
|
substituteInPlace lua/stylish/common/mouse_hover_handler.lua --replace xdotool ${xdotool}/bin/xdotool
|
|
substituteInPlace lua/stylish/components/menu.lua --replace xdotool ${xdotool}/bin/xdotool
|
|
substituteInPlace lua/stylish/components/menu.lua --replace xwininfo ${xorg.xwininfo}/bin/xwininfo
|
|
'';
|
|
nvimRequireCheck = "stylish";
|
|
};
|
|
|
|
sved =
|
|
let
|
|
# we put the script in its own derivation to benefit the magic of wrapGAppsHook3
|
|
svedbackend = stdenv.mkDerivation {
|
|
name = "svedbackend-${super.sved.name}";
|
|
inherit (super.sved) src;
|
|
nativeBuildInputs = [
|
|
wrapGAppsHook3
|
|
gobject-introspection
|
|
];
|
|
buildInputs = [
|
|
glib
|
|
(python3.withPackages (
|
|
ps: with ps; [
|
|
pygobject3
|
|
pynvim
|
|
dbus-python
|
|
]
|
|
))
|
|
];
|
|
preferLocalBuild = true;
|
|
installPhase = ''
|
|
install -Dt $out/bin ftplugin/evinceSync.py
|
|
'';
|
|
};
|
|
# the vim plugin expects evinceSync.py to be a python file, but it is a C wrapper
|
|
pythonWrapper =
|
|
writeText "evinceSync-wrapper.py" # python
|
|
''
|
|
#!${python3}/bin/python3
|
|
import os
|
|
import sys
|
|
os.execv("${svedbackend}/bin/evinceSync.py", sys.argv)
|
|
'';
|
|
in
|
|
super.sved.overrideAttrs {
|
|
preferLocalBuild = true;
|
|
postPatch = ''
|
|
rm ftplugin/evinceSync.py
|
|
install -m 544 ${pythonWrapper} ftplugin/evinceSync.py
|
|
'';
|
|
meta = {
|
|
description = "synctex support between vim/neovim and evince";
|
|
};
|
|
};
|
|
|
|
syntax-tree-surfer = super.syntax-tree-surfer.overrideAttrs {
|
|
dependencies = with self; [ nvim-treesitter ];
|
|
meta.maintainers = with lib.maintainers; [ callumio ];
|
|
nvimRequireCheck = "syntax-tree-surfer";
|
|
};
|
|
|
|
taskwarrior3 = buildVimPlugin {
|
|
inherit (taskwarrior3) version pname;
|
|
src = "${taskwarrior3.src}/scripts/vim";
|
|
};
|
|
|
|
taskwarrior2 = buildVimPlugin {
|
|
inherit (taskwarrior2) version pname;
|
|
src = "${taskwarrior2.src}/scripts/vim";
|
|
};
|
|
|
|
telekasten-nvim = super.telekasten-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
plenary-nvim
|
|
telescope-nvim
|
|
];
|
|
nvimRequireCheck = "telekasten";
|
|
};
|
|
|
|
telescope-asynctasks-nvim = super.telescope-asynctasks-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
plenary-nvim
|
|
telescope-nvim
|
|
];
|
|
};
|
|
|
|
telescope-cheat-nvim = super.telescope-cheat-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
plenary-nvim
|
|
sqlite-lua
|
|
telescope-nvim
|
|
];
|
|
};
|
|
|
|
telescope-coc-nvim = super.telescope-coc-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
plenary-nvim
|
|
telescope-nvim
|
|
];
|
|
};
|
|
|
|
telescope-dap-nvim = super.telescope-dap-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
plenary-nvim
|
|
nvim-dap
|
|
telescope-nvim
|
|
];
|
|
};
|
|
|
|
telescope-frecency-nvim = super.telescope-frecency-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
sqlite-lua
|
|
telescope-nvim
|
|
];
|
|
};
|
|
|
|
telescope-fzf-native-nvim = super.telescope-fzf-native-nvim.overrideAttrs {
|
|
dependencies = with self; [ telescope-nvim ];
|
|
buildPhase = "make";
|
|
meta.platforms = lib.platforms.all;
|
|
};
|
|
|
|
telescope-fzf-writer-nvim = super.telescope-fzf-writer-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
plenary-nvim
|
|
telescope-nvim
|
|
];
|
|
};
|
|
|
|
telescope-fzy-native-nvim = super.telescope-fzy-native-nvim.overrideAttrs (old: {
|
|
dependencies = with self; [ telescope-nvim ];
|
|
preFixup =
|
|
let
|
|
fzy-lua-native-path = "deps/fzy-lua-native";
|
|
fzy-lua-native = stdenv.mkDerivation {
|
|
name = "fzy-lua-native";
|
|
src = "${old.src}/${fzy-lua-native-path}";
|
|
# remove pre-compiled binaries
|
|
preBuild = "rm -rf static/*";
|
|
installPhase = ''
|
|
install -Dm 444 -t $out/static static/*
|
|
install -Dm 444 -t $out/lua lua/*
|
|
'';
|
|
};
|
|
in
|
|
''
|
|
rm -rf $target/${fzy-lua-native-path}/*
|
|
ln -s ${fzy-lua-native}/static $target/${fzy-lua-native-path}/static
|
|
ln -s ${fzy-lua-native}/lua $target/${fzy-lua-native-path}/lua
|
|
'';
|
|
meta.platforms = lib.platforms.all;
|
|
});
|
|
|
|
telescope-git-conflicts-nvim = super.telescope-git-conflicts-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
plenary-nvim
|
|
telescope-nvim
|
|
];
|
|
};
|
|
|
|
telescope-github-nvim = super.telescope-github-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
plenary-nvim
|
|
telescope-nvim
|
|
];
|
|
};
|
|
|
|
telescope-lsp-handlers-nvim = super.telescope-lsp-handlers-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
plenary-nvim
|
|
telescope-nvim
|
|
];
|
|
};
|
|
|
|
telescope-media-files-nvim = super.telescope-media-files-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
telescope-nvim
|
|
popup-nvim
|
|
plenary-nvim
|
|
];
|
|
};
|
|
|
|
telescope-project-nvim = super.telescope-project-nvim.overrideAttrs {
|
|
dependencies = with self; [ plenary-nvim ];
|
|
};
|
|
|
|
telescope-nvim = super.telescope-nvim.overrideAttrs {
|
|
dependencies = with self; [ plenary-nvim ];
|
|
};
|
|
|
|
telescope-smart-history-nvim = super.telescope-smart-history-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
plenary-nvim
|
|
telescope-nvim
|
|
];
|
|
};
|
|
|
|
telescope-symbols-nvim = super.telescope-symbols-nvim.overrideAttrs {
|
|
dependencies = with self; [ telescope-nvim ];
|
|
};
|
|
|
|
telescope-ui-select-nvim = super.telescope-ui-select-nvim.overrideAttrs {
|
|
dependencies = with self; [ telescope-nvim ];
|
|
};
|
|
|
|
telescope-ultisnips-nvim = super.telescope-ultisnips-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
plenary-nvim
|
|
telescope-nvim
|
|
];
|
|
};
|
|
|
|
telescope-undo-nvim = super.telescope-undo-nvim.overrideAttrs {
|
|
dependencies = with self; [ telescope-nvim ];
|
|
};
|
|
|
|
telescope-vim-bookmarks-nvim = super.telescope-vim-bookmarks-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
plenary-nvim
|
|
telescope-nvim
|
|
];
|
|
};
|
|
|
|
telescope-z-nvim = super.telescope-z-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
plenary-nvim
|
|
telescope-nvim
|
|
];
|
|
};
|
|
|
|
quarto-nvim = super.quarto-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-lspconfig
|
|
otter-nvim
|
|
];
|
|
|
|
nvimRequireCheck = "quarto";
|
|
doInstallCheck = true;
|
|
};
|
|
|
|
telescope-zoxide = super.telescope-zoxide.overrideAttrs {
|
|
dependencies = with self; [ telescope-nvim ];
|
|
|
|
buildInputs = [ zoxide ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace lua/telescope/_extensions/zoxide/config.lua \
|
|
--replace "zoxide query -ls" "${zoxide}/bin/zoxide query -ls"
|
|
'';
|
|
};
|
|
|
|
tmux-complete-vim = super.tmux-complete-vim.overrideAttrs {
|
|
# Vim plugin with optional nvim-compe lua module
|
|
doCheck = false;
|
|
};
|
|
|
|
todo-comments-nvim = super.todo-comments-nvim.overrideAttrs {
|
|
dependencies = [ self.plenary-nvim ];
|
|
nvimRequireCheck = "todo-comments";
|
|
};
|
|
|
|
tsc-nvim = super.tsc-nvim.overrideAttrs {
|
|
patches = [ ./patches/tsc.nvim/fix-path.patch ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace lua/tsc/utils.lua --replace '@tsc@' ${typescript}/bin/tsc
|
|
'';
|
|
};
|
|
|
|
tssorter-nvim = super.tssorter-nvim.overrideAttrs {
|
|
dependencies = with self; [ nvim-treesitter ];
|
|
nvimRequireCheck = "tssorter";
|
|
};
|
|
|
|
tup =
|
|
let
|
|
# Based on the comment at the top of https://github.com/gittup/tup/blob/master/contrib/syntax/tup.vim
|
|
ftdetect = builtins.toFile "tup.vim" ''
|
|
au BufNewFile,BufRead Tupfile,*.tup setf tup
|
|
'';
|
|
in
|
|
buildVimPlugin {
|
|
inherit (tup) pname version src;
|
|
preInstall = ''
|
|
mkdir -p vim-plugin/syntax vim-plugin/ftdetect
|
|
cp contrib/syntax/tup.vim vim-plugin/syntax/tup.vim
|
|
cp "${ftdetect}" vim-plugin/ftdetect/tup.vim
|
|
cd vim-plugin
|
|
'';
|
|
meta.maintainers = with lib.maintainers; [ enderger ];
|
|
};
|
|
|
|
typescript-tools-nvim = super.typescript-tools-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
nvim-lspconfig
|
|
plenary-nvim
|
|
];
|
|
nvimRequireCheck = "typescript-tools";
|
|
};
|
|
|
|
unicode-vim =
|
|
let
|
|
unicode-data = fetchurl {
|
|
url = "http://www.unicode.org/Public/UNIDATA/UnicodeData.txt";
|
|
sha256 = "16b0jzvvzarnlxdvs2izd5ia0ipbd87md143dc6lv6xpdqcs75s9";
|
|
};
|
|
in
|
|
super.unicode-vim.overrideAttrs (oa: {
|
|
# redirect to /dev/null else changes terminal color
|
|
buildPhase = ''
|
|
cp "${unicode-data}" autoload/unicode/UnicodeData.txt
|
|
echo "Building unicode cache"
|
|
${vim}/bin/vim --cmd ":set rtp^=$PWD" -c 'ru plugin/unicode.vim' -c 'UnicodeCache' -c ':echohl Normal' -c ':q' > /dev/null
|
|
'';
|
|
|
|
passthru = oa.passthru // {
|
|
|
|
initLua = ''vim.g.Unicode_data_directory="${self.unicode-vim}/autoload/unicode"'';
|
|
};
|
|
});
|
|
|
|
unison = super.unison.overrideAttrs {
|
|
# Editor stuff isn't at top level
|
|
postPatch = "cd editor-support/vim";
|
|
};
|
|
|
|
vCoolor-vim = super.vCoolor-vim.overrideAttrs {
|
|
# on linux can use either Zenity or Yad.
|
|
propagatedBuildInputs = [ zenity ];
|
|
meta = {
|
|
description = "Simple color selector/picker plugin";
|
|
license = lib.licenses.publicDomain;
|
|
};
|
|
};
|
|
|
|
vim-addon-actions = super.vim-addon-actions.overrideAttrs {
|
|
dependencies = with self; [
|
|
vim-addon-mw-utils
|
|
tlib_vim
|
|
];
|
|
};
|
|
|
|
vim-addon-async = super.vim-addon-async.overrideAttrs {
|
|
dependencies = with self; [ vim-addon-signs ];
|
|
};
|
|
|
|
vim-addon-background-cmd = super.vim-addon-background-cmd.overrideAttrs {
|
|
dependencies = with self; [ vim-addon-mw-utils ];
|
|
};
|
|
|
|
vim-addon-completion = super.vim-addon-completion.overrideAttrs {
|
|
dependencies = with self; [ tlib_vim ];
|
|
};
|
|
|
|
vim-addon-goto-thing-at-cursor = super.vim-addon-goto-thing-at-cursor.overrideAttrs {
|
|
dependencies = with self; [ tlib_vim ];
|
|
};
|
|
|
|
vim-addon-manager = super.vim-addon-manager.overrideAttrs {
|
|
buildInputs = lib.optional stdenv.hostPlatform.isDarwin Cocoa;
|
|
};
|
|
|
|
vim-addon-mru = super.vim-addon-mru.overrideAttrs {
|
|
dependencies = with self; [
|
|
vim-addon-other
|
|
vim-addon-mw-utils
|
|
];
|
|
};
|
|
|
|
vim-addon-nix = super.vim-addon-nix.overrideAttrs {
|
|
dependencies = with self; [
|
|
vim-addon-completion
|
|
vim-addon-goto-thing-at-cursor
|
|
vim-addon-errorformats
|
|
vim-addon-actions
|
|
vim-addon-mw-utils
|
|
tlib_vim
|
|
];
|
|
};
|
|
|
|
vim-addon-sql = super.vim-addon-sql.overrideAttrs {
|
|
dependencies = with self; [
|
|
vim-addon-completion
|
|
vim-addon-background-cmd
|
|
tlib_vim
|
|
];
|
|
};
|
|
|
|
vim-addon-syntax-checker = super.vim-addon-syntax-checker.overrideAttrs {
|
|
dependencies = with self; [
|
|
vim-addon-mw-utils
|
|
tlib_vim
|
|
];
|
|
};
|
|
|
|
vim-addon-toggle-buffer = super.vim-addon-toggle-buffer.overrideAttrs {
|
|
dependencies = with self; [
|
|
vim-addon-mw-utils
|
|
tlib_vim
|
|
];
|
|
};
|
|
|
|
vim-addon-xdebug = super.vim-addon-xdebug.overrideAttrs {
|
|
dependencies = with self; [
|
|
webapi-vim
|
|
vim-addon-mw-utils
|
|
vim-addon-signs
|
|
vim-addon-async
|
|
];
|
|
};
|
|
|
|
vim-agda = super.vim-agda.overrideAttrs {
|
|
preFixup = ''
|
|
substituteInPlace "$out"/autoload/agda.vim \
|
|
--replace "jobstart(['agda'" "jobstart(['${agda}/bin/agda'"
|
|
'';
|
|
};
|
|
|
|
vim-bazel = super.vim-bazel.overrideAttrs {
|
|
dependencies = with self; [ vim-maktaba ];
|
|
};
|
|
|
|
vim-beancount = super.vim-beancount.overrideAttrs {
|
|
passthru.python3Dependencies = ps: with ps; [ beancount ];
|
|
};
|
|
|
|
vim-clap = callPackage ./vim-clap { };
|
|
|
|
vim-codefmt = super.vim-codefmt.overrideAttrs {
|
|
dependencies = with self; [ vim-maktaba ];
|
|
};
|
|
|
|
# Due to case-sensitivety issues, the hash differs on Darwin systems, see:
|
|
# https://github.com/NixOS/nixpkgs/issues/157609
|
|
vim-colorschemes = super.vim-colorschemes.overrideAttrs (old: {
|
|
src = old.src.overrideAttrs (srcOld: {
|
|
postFetch =
|
|
(srcOld.postFetch or "")
|
|
+ lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
|
|
rm $out/colors/darkBlue.vim
|
|
'';
|
|
});
|
|
});
|
|
|
|
vim-dadbod-ui = super.vim-dadbod-ui.overrideAttrs {
|
|
dependencies = [ self.vim-dadbod ];
|
|
|
|
doInstallCheck = true;
|
|
vimCommandCheck = "DBUI";
|
|
};
|
|
|
|
vim-dasht = super.vim-dasht.overrideAttrs {
|
|
preFixup = ''
|
|
substituteInPlace $out/autoload/dasht.vim \
|
|
--replace "['dasht']" "['${dasht}/bin/dasht']"
|
|
'';
|
|
};
|
|
|
|
vim-easytags = super.vim-easytags.overrideAttrs {
|
|
dependencies = with self; [ vim-misc ];
|
|
patches = [
|
|
(fetchpatch {
|
|
# https://github.com/xolox/vim-easytags/pull/170 fix version detection for universal-ctags
|
|
url = "https://github.com/xolox/vim-easytags/commit/46e4709500ba3b8e6cf3e90aeb95736b19e49be9.patch";
|
|
sha256 = "0x0xabb56xkgdqrg1mpvhbi3yw4d829n73lsnnyj5yrxjffy4ax4";
|
|
})
|
|
];
|
|
};
|
|
|
|
vim-fzf-coauthorship = super.vim-fzf-coauthorship.overrideAttrs {
|
|
dependencies = with self; [ fzf-vim ];
|
|
};
|
|
|
|
# change the go_bin_path to point to a path in the nix store. See the code in
|
|
# fatih/vim-go here
|
|
# https://github.com/fatih/vim-go/blob/155836d47052ea9c9bac81ba3e937f6f22c8e384/autoload/go/path.vim#L154-L159
|
|
vim-go =
|
|
let
|
|
binPath = lib.makeBinPath [
|
|
asmfmt
|
|
delve
|
|
errcheck
|
|
go-motion
|
|
go-tools # contains staticcheck, keyify
|
|
gocode-gomod
|
|
godef
|
|
gogetdoc
|
|
golint
|
|
golangci-lint
|
|
gomodifytags
|
|
gopls
|
|
gotags
|
|
gotools # contains guru, gorename
|
|
iferr
|
|
impl
|
|
reftools
|
|
revive
|
|
];
|
|
in
|
|
super.vim-go.overrideAttrs {
|
|
postPatch = ''
|
|
sed -i autoload/go/config.vim -Ee 's@"go_bin_path", ""@"go_bin_path", "${binPath}"@g'
|
|
'';
|
|
};
|
|
|
|
vim-gist = super.vim-gist.overrideAttrs {
|
|
dependencies = with self; [ webapi-vim ];
|
|
};
|
|
|
|
vim-grammarous = super.vim-grammarous.overrideAttrs {
|
|
# use `:GrammarousCheck` to initialize checking
|
|
# In neovim, you also want to use set
|
|
# let g:grammarous#show_first_error = 1
|
|
# see https://github.com/rhysd/vim-grammarous/issues/39
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./patches/vim-grammarous/set_default_languagetool.patch;
|
|
inherit languagetool;
|
|
})
|
|
];
|
|
};
|
|
|
|
vim-hexokinase = super.vim-hexokinase.overrideAttrs (old: {
|
|
preFixup =
|
|
let
|
|
hexokinase = buildGoModule {
|
|
name = "hexokinase";
|
|
src = old.src + "/hexokinase";
|
|
vendorHash = null;
|
|
};
|
|
in
|
|
''
|
|
ln -s ${hexokinase}/bin/hexokinase $target/hexokinase/hexokinase
|
|
'';
|
|
|
|
meta.platforms = lib.platforms.all;
|
|
});
|
|
|
|
vim-hier = super.vim-hier.overrideAttrs {
|
|
buildInputs = [ vim ];
|
|
};
|
|
|
|
vim-isort = super.vim-isort.overrideAttrs {
|
|
postPatch = ''
|
|
substituteInPlace ftplugin/python_vimisort.vim \
|
|
--replace 'import vim' 'import vim; import sys; sys.path.append("${python3.pkgs.isort}/${python3.sitePackages}")'
|
|
'';
|
|
};
|
|
|
|
vim-markdown-composer =
|
|
let
|
|
vim-markdown-composer-bin = rustPlatform.buildRustPackage {
|
|
pname = "vim-markdown-composer-bin";
|
|
inherit (super.vim-markdown-composer) src version;
|
|
cargoHash = "sha256-Vie8vLTplhaVU4E9IohvxERfz3eBpd62m8/1Ukzk8e4=";
|
|
# tests require network access
|
|
doCheck = false;
|
|
};
|
|
in
|
|
super.vim-markdown-composer.overrideAttrs {
|
|
preFixup = ''
|
|
substituteInPlace "$out"/after/ftplugin/markdown/composer.vim \
|
|
--replace "s:plugin_root . '/target/release/markdown-composer'" \
|
|
"'${vim-markdown-composer-bin}/bin/markdown-composer'"
|
|
'';
|
|
};
|
|
|
|
vim-metamath = super.vim-metamath.overrideAttrs {
|
|
preInstall = "cd vim";
|
|
};
|
|
|
|
vim-pluto = super.vim-pluto.overrideAttrs {
|
|
dependencies = with self; [ denops-vim ];
|
|
};
|
|
|
|
# The GitHub repository returns 404, which breaks the update script
|
|
vim-pony = buildVimPlugin {
|
|
pname = "vim-pony";
|
|
version = "2018-07-27";
|
|
src = fetchFromGitHub {
|
|
owner = "jakwings";
|
|
repo = "vim-pony";
|
|
rev = "b26f01a869000b73b80dceabd725d91bfe175b75";
|
|
sha256 = "0if8g94m3xmpda80byfxs649w2is9ah1k8v3028nblan73zlc8x8";
|
|
};
|
|
meta.homepage = "https://github.com/jakwings/vim-pony/";
|
|
};
|
|
|
|
vim-sensible = super.vim-sensible.overrideAttrs {
|
|
patches = [ ./patches/vim-sensible/fix-nix-store-path-regex.patch ];
|
|
};
|
|
|
|
vim-snipmate = super.vim-snipmate.overrideAttrs {
|
|
dependencies = with self; [
|
|
vim-addon-mw-utils
|
|
tlib_vim
|
|
];
|
|
};
|
|
|
|
vim-speeddating = super.vim-speeddating.overrideAttrs {
|
|
dependencies = with self; [ vim-repeat ];
|
|
};
|
|
|
|
vim-stylish-haskell = super.vim-stylish-haskell.overrideAttrs (old: {
|
|
postPatch =
|
|
old.postPatch or ""
|
|
+ ''
|
|
substituteInPlace ftplugin/haskell/stylish-haskell.vim --replace \
|
|
'g:stylish_haskell_command = "stylish-haskell"' \
|
|
'g:stylish_haskell_command = "${stylish-haskell}/bin/stylish-haskell"'
|
|
'';
|
|
});
|
|
|
|
vim-surround = super.vim-surround.overrideAttrs {
|
|
dependencies = with self; [ vim-repeat ];
|
|
};
|
|
|
|
vim-tabby = super.vim-tabby.overrideAttrs {
|
|
nvimRequirecheck = "tabby";
|
|
};
|
|
|
|
vim-textobj-entire = super.vim-textobj-entire.overrideAttrs {
|
|
dependencies = with self; [ vim-textobj-user ];
|
|
meta.maintainers = with lib.maintainers; [ farlion ];
|
|
};
|
|
|
|
vim-unimpaired = super.vim-unimpaired.overrideAttrs {
|
|
dependencies = with self; [ vim-repeat ];
|
|
};
|
|
|
|
vim-wakatime = super.vim-wakatime.overrideAttrs {
|
|
buildInputs = [ python3 ];
|
|
patchPhase = ''
|
|
substituteInPlace plugin/wakatime.vim \
|
|
--replace 'autocmd BufEnter,VimEnter' \
|
|
'autocmd VimEnter' \
|
|
--replace 'autocmd CursorMoved,CursorMovedI' \
|
|
'autocmd CursorMoved,CursorMovedI,BufEnter'
|
|
'';
|
|
};
|
|
|
|
vim-xdebug = super.vim-xdebug.overrideAttrs {
|
|
postInstall = null;
|
|
};
|
|
|
|
vim-xkbswitch = super.vim-xkbswitch.overrideAttrs {
|
|
patchPhase = ''
|
|
substituteInPlace plugin/xkbswitch.vim \
|
|
--replace /usr/local/lib/libxkbswitch.so ${xkb-switch}/lib/libxkbswitch.so
|
|
'';
|
|
buildInputs = [ xkb-switch ];
|
|
};
|
|
|
|
vim-yapf = super.vim-yapf.overrideAttrs {
|
|
buildPhase = ''
|
|
substituteInPlace ftplugin/python_yapf.vim \
|
|
--replace '"yapf"' '"${python3.pkgs.yapf}/bin/yapf"'
|
|
'';
|
|
};
|
|
|
|
vim2nix = buildVimPlugin {
|
|
pname = "vim2nix";
|
|
version = "1.0";
|
|
src = ./vim2nix;
|
|
dependencies = with self; [ vim-addon-manager ];
|
|
};
|
|
|
|
vimacs = super.vimacs.overrideAttrs {
|
|
buildPhase = ''
|
|
substituteInPlace bin/vim \
|
|
--replace '/usr/bin/vim' 'vim' \
|
|
--replace '/usr/bin/gvim' 'gvim'
|
|
# remove unnecessary duplicated bin wrapper script
|
|
rm -r plugin/vimacs
|
|
'';
|
|
meta = with lib; {
|
|
description = "Vim-Improved eMACS: Emacs emulation plugin for Vim";
|
|
homepage = "http://algorithm.com.au/code/vimacs";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ millerjason ];
|
|
};
|
|
};
|
|
|
|
# The GitHub repository returns 404, which breaks the update script
|
|
VimCompletesMe = buildVimPlugin {
|
|
pname = "VimCompletesMe";
|
|
version = "2022-02-18";
|
|
src = fetchFromGitHub {
|
|
owner = "ackyshake";
|
|
repo = "VimCompletesMe";
|
|
rev = "9adf692d7ae6424038458a89d4a411f0a27d1388";
|
|
sha256 = "1sndgb3291dyifaa8adri2mb8cgbinbar3nw1fnf67k9ahwycaz0";
|
|
};
|
|
meta.homepage = "https://github.com/ackyshake/VimCompletesMe/";
|
|
};
|
|
|
|
vimsence = super.vimsence.overrideAttrs {
|
|
meta = with lib; {
|
|
description = "Discord rich presence for Vim";
|
|
homepage = "https://github.com/hugolgst/vimsence";
|
|
maintainers = with lib.maintainers; [ hugolgst ];
|
|
};
|
|
};
|
|
|
|
vimproc-vim = super.vimproc-vim.overrideAttrs {
|
|
buildInputs = [ which ];
|
|
|
|
buildPhase = ''
|
|
substituteInPlace autoload/vimproc.vim \
|
|
--replace vimproc_mac.so vimproc_unix.so \
|
|
--replace vimproc_linux64.so vimproc_unix.so \
|
|
--replace vimproc_linux32.so vimproc_unix.so
|
|
make -f make_unix.mak
|
|
'';
|
|
};
|
|
|
|
vimshell-vim = super.vimshell-vim.overrideAttrs {
|
|
dependencies = with self; [ vimproc-vim ];
|
|
};
|
|
|
|
vim-zettel = super.vim-zettel.overrideAttrs {
|
|
dependencies = with self; [
|
|
vimwiki
|
|
fzf-vim
|
|
];
|
|
};
|
|
|
|
windows-nvim = super.windows-nvim.overrideAttrs {
|
|
dependencies = with self; [
|
|
middleclass
|
|
animation-nvim
|
|
];
|
|
nvimRequireCheck = "windows";
|
|
};
|
|
|
|
wtf-nvim = super.wtf-nvim.overrideAttrs {
|
|
dependencies = with self; [ nui-nvim ];
|
|
nvimRequireCheck = "wtf";
|
|
};
|
|
|
|
YankRing-vim = super.YankRing-vim.overrideAttrs {
|
|
sourceRoot = ".";
|
|
};
|
|
|
|
yazi-nvim = super.yazi-nvim.overrideAttrs {
|
|
dependencies = with self; [ plenary-nvim ];
|
|
nvimRequireCheck = "yazi";
|
|
};
|
|
|
|
YouCompleteMe = super.YouCompleteMe.overrideAttrs {
|
|
buildPhase = ''
|
|
substituteInPlace plugin/youcompleteme.vim \
|
|
--replace "'ycm_path_to_python_interpreter', '''" \
|
|
"'ycm_path_to_python_interpreter', '${python3}/bin/python3'"
|
|
|
|
rm -r third_party/ycmd
|
|
ln -s ${ycmd}/lib/ycmd third_party
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Code-completion engine for Vim";
|
|
homepage = "https://github.com/Valloric/YouCompleteMe";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [
|
|
marcweber
|
|
jagajaga
|
|
];
|
|
platforms = platforms.unix;
|
|
};
|
|
};
|
|
|
|
zoxide-vim = super.zoxide-vim.overrideAttrs {
|
|
buildInputs = [ zoxide ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace autoload/zoxide.vim \
|
|
--replace "'zoxide_executable', 'zoxide'" "'zoxide_executable', '${zoxide}/bin/zoxide'"
|
|
'';
|
|
};
|
|
|
|
typst-preview-nvim = super.typst-preview-nvim.overrideAttrs {
|
|
postPatch = ''
|
|
substituteInPlace lua/typst-preview/config.lua \
|
|
--replace-fail "['tinymist'] = nil," "tinymist = '${lib.getExe tinymist}'," \
|
|
--replace-fail "['websocat'] = nil," "websocat = '${lib.getExe websocat}',"
|
|
'';
|
|
|
|
nvimRequireCheck = "typst-preview";
|
|
};
|
|
}
|
|
// (
|
|
let
|
|
nodePackageNames = [
|
|
"coc-cmake"
|
|
"coc-docker"
|
|
"coc-emmet"
|
|
"coc-eslint"
|
|
"coc-explorer"
|
|
"coc-flutter"
|
|
"coc-git"
|
|
"coc-go"
|
|
"coc-haxe"
|
|
"coc-highlight"
|
|
"coc-html"
|
|
"coc-java"
|
|
"coc-jest"
|
|
"coc-json"
|
|
"coc-lists"
|
|
"coc-ltex"
|
|
"coc-markdownlint"
|
|
"coc-pairs"
|
|
"coc-prettier"
|
|
"coc-r-lsp"
|
|
"coc-rls"
|
|
"coc-rust-analyzer"
|
|
"coc-sh"
|
|
"coc-smartf"
|
|
"coc-snippets"
|
|
"coc-solargraph"
|
|
"coc-spell-checker"
|
|
"coc-sqlfluff"
|
|
"coc-stylelint"
|
|
"coc-sumneko-lua"
|
|
"coc-tabnine"
|
|
"coc-texlab"
|
|
"coc-toml"
|
|
"coc-tsserver"
|
|
"coc-ultisnips"
|
|
"coc-vetur"
|
|
"coc-vimlsp"
|
|
"coc-vimtex"
|
|
"coc-wxml"
|
|
"coc-yaml"
|
|
"coc-yank"
|
|
];
|
|
nodePackage2VimPackage =
|
|
name:
|
|
buildVimPlugin {
|
|
pname = name;
|
|
inherit (nodePackages.${name}) version meta;
|
|
src = "${nodePackages.${name}}/lib/node_modules/${name}";
|
|
};
|
|
in
|
|
lib.genAttrs nodePackageNames nodePackage2VimPackage
|
|
)
|