nixos-configuration/hive/framework/jrpotter/neovim/utils.nix

12 lines
293 B
Nix

{ pkgs, lib, ... }:
{
pluginGit = rev: repo: pkgs.vimUtils.buildVimPluginFrom2Nix {
pname = "${lib.strings.sanitizeDerivationName repo}";
version = builtins.substring 0 7 rev;
src = builtins.fetchGit {
url = "https://github.com/${repo}.git";
rev = rev;
};
};
}