Skip to content

Commit

Permalink
Merge pull request #83119 from ryneeverett/vim-plugins-update-redirects
Browse files Browse the repository at this point in the history
VimPlugins: update redirected repos
  • Loading branch information
timokau committed Mar 27, 2020
2 parents a845ade + 25fea45 commit 12c931a
Show file tree
Hide file tree
Showing 7 changed files with 222 additions and 130 deletions.
13 changes: 8 additions & 5 deletions pkgs/misc/vim-plugins/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,13 @@ let
(removeRecurseForDerivations
(checkInPkgs n alias)))
aliases;
in

mapAliases {
deprecations = lib.mapAttrs (old: info:
throw "${old} was renamed to ${info.new} on ${info.date}. Please update to ${info.new}."
) (builtins.fromJSON (builtins.readFile ./deprecated.json));

in
mapAliases ({
airline = vim-airline;
alternative = a-vim; # backwards compat, added 2014-10-21
bats = bats-vim;
Expand Down Expand Up @@ -68,7 +72,7 @@ mapAliases {
ghc-mod-vim = ghcmod-vim;
ghcmod = ghcmod-vim;
goyo = goyo-vim;
Gist = gist-vim;
Gist = vim-gist;
gitgutter = vim-gitgutter;
gundo = gundo-vim;
Gundo = gundo-vim; # backwards compat, added 2015-10-03
Expand Down Expand Up @@ -134,7 +138,6 @@ mapAliases {
wombat256 = wombat256-vim; # backwards compat, added 2015-7-8
yankring = YankRing-vim;
Yankring = YankRing-vim;
YouCompleteMe = youcompleteme;
xterm-color-table = xterm-color-table-vim;
zeavim = zeavim-vim;
}
} // deprecations)
1 change: 0 additions & 1 deletion pkgs/misc/vim-plugins/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ let

# TL;DR
# * Add your plugin to ./vim-plugin-names
# * sort -udf ./vim-plugin-names > sorted && mv sorted vim-plugin-names
# * run ./update.py
#
# If additional modifications to the build process are required,
Expand Down
18 changes: 18 additions & 0 deletions pkgs/misc/vim-plugins/deprecated.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"gist-vim": {
"date": "2020-03-27",
"new": "vim-gist"
},
"vim-jade": {
"date": "2020-03-27",
"new": "vim-pug"
},
"vundle": {
"date": "2020-03-27",
"new": "Vundle.vim"
},
"youcompleteme": {
"date": "2020-03-27",
"new": "YouCompleteMe"
}
}
Loading

0 comments on commit 12c931a

Please sign in to comment.