1# Deprecated aliases - for backward compatibility
2lib:
3
4final: prev:
5
6let
7 # Removing recurseForDerivation prevents derivations of aliased attribute
8 # set to appear while listing all the packages available.
9 removeRecurseForDerivations =
10 alias:
11 if alias.recurseForDerivations or false then
12 lib.removeAttrs alias [ "recurseForDerivations" ]
13 else
14 alias;
15
16 # Disabling distribution prevents top-level aliases for non-recursed package
17 # sets from building on Hydra.
18 removeDistribute = alias: if lib.isDerivation alias then lib.dontDistribute alias else alias;
19
20 # Make sure that we are not shadowing something from
21 # all-packages.nix.
22 checkInPkgs =
23 n: alias: if builtins.hasAttr n prev then throw "Alias ${n} is still in vim-plugins" else alias;
24
25 mapAliases =
26 aliases:
27 lib.mapAttrs (
28 n: alias: removeDistribute (removeRecurseForDerivations (checkInPkgs n alias))
29 ) aliases;
30
31 deprecations = lib.mapAttrs (
32 old: info: throw "${old} was renamed to ${info.new} on ${info.date}. Please update to ${info.new}."
33 ) (lib.importJSON ./deprecated.json);
34
35in
36mapAliases (
37 with prev;
38 {
39 airline = vim-airline;
40 alternative = a-vim; # backwards compat, added 2014-10-21
41 bats = bats-vim;
42 blueballs-neovim = throw "`blueballs-neovim` has been removed"; # added 2025-06-17
43 BufOnly = BufOnly-vim;
44 calendar = calendar-vim;
45 coffee-script = vim-coffee-script;
46 coffeeScript = vim-coffee-script; # backwards compat, added 2014-10-18
47 Solarized = vim-colors-solarized;
48 solarized = vim-colors-solarized;
49 spacevim = throw "this distribution was unmaintained for the last 6 years, please use top-level 'spacevim'"; # added 2024-11-27
50 SpaceVim = throw "this distribution didn't work properly in vimPlugins, please use top-level 'spacevim' instead"; # added 2024-11-27
51 colors-solarized = vim-colors-solarized;
52 caw = caw-vim;
53 chad = chadtree;
54 colorsamplerpack = Colour-Sampler-Pack;
55 Colour_Sampler_Pack = Colour-Sampler-Pack;
56 command_T = command-t; # backwards compat, added 2014-10-18
57 commentary = vim-commentary;
58 committia = committia-vim;
59 concealedyank = concealedyank-vim;
60 context-filetype = context_filetype-vim;
61 Cosco = cosco-vim;
62 css_color_5056 = vim-css-color;
63 CSApprox = csapprox;
64 csv = csv-vim;
65 ctrlp = ctrlp-vim;
66 cute-python = vim-cute-python;
67 denite = denite-nvim;
68 easy-align = vim-easy-align;
69 easygit = vim-easygit;
70 easymotion = vim-easymotion;
71 echodoc = echodoc-vim;
72 eighties = vim-eighties;
73 extradite = vim-extradite;
74 feline-nvim = throw "feline.nvim has been removed: upstream deleted repository. Consider using lualine"; # Added 2025-02-09
75 fugitive = vim-fugitive;
76 floating-nvim = throw "floating.nvim has been removed: abandoned by upstream. Use popup-nvim or nui-nvim"; # Added 2024-11-26
77 ghc-mod-vim = ghcmod-vim;
78 ghcmod = ghcmod-vim;
79 gleam-vim = throw "gleam.vim has been removed: its code was merged into vim."; # Added 2025-06-10
80 goyo = goyo-vim;
81 Gist = vim-gist;
82 gitgutter = vim-gitgutter;
83 gundo = gundo-vim;
84 Gundo = gundo-vim; # backwards compat, added 2015-10-03
85 haskellConceal = vim-haskellconceal; # backwards compat, added 2014-10-18
86 haskellConcealPlus = vim-haskellConcealPlus;
87 haskellconceal = vim-haskellconceal;
88 hier = vim-hier;
89 hlint-refactor = hlint-refactor-vim;
90 hoogle = vim-hoogle;
91 Hoogle = vim-hoogle;
92 indent-blankline-nvim-lua = indent-blankline-nvim; # backwards compat, added 2021-07-05
93 ipython = vim-ipython;
94 latex-live-preview = vim-latex-live-preview;
95 maktaba = vim-maktaba;
96 multiple-cursors = vim-multiple-cursors;
97 necoGhc = neco-ghc; # backwards compat, added 2014-10-18
98 neocomplete = neocomplete-vim;
99 neoinclude = neoinclude-vim;
100 neomru = neomru-vim;
101 neosnippet = neosnippet-vim;
102 nvim-ts-rainbow = throw "nvim-ts-rainbow has been deprecated: Use rainbow-delimiters-nvim"; # Added 2023-11-30
103 nvim-ts-rainbow2 = throw "nvim-ts-rainbow2 has been deprecated: Use rainbow-delimiters-nvim"; # Added 2023-11-30
104 The_NERD_Commenter = nerdcommenter;
105 The_NERD_tree = nerdtree;
106 open-browser = open-browser-vim;
107 pathogen = vim-pathogen;
108 peskcolor-vim = throw "peskcolor-vim has been removed: abandoned by upstream"; # Added 2024-08-23
109 polyglot = vim-polyglot;
110 prettyprint = vim-prettyprint;
111 quickrun = vim-quickrun;
112 rainbow_parentheses = rainbow_parentheses-vim;
113 repeat = vim-repeat;
114 riv = riv-vim;
115 rhubarb = vim-rhubarb;
116 sensible = vim-sensible;
117 signature = vim-signature;
118 snipmate = vim-snipmate;
119 sourcemap = sourcemap-vim;
120 "sourcemap.vim" = sourcemap-vim;
121 Spacegray-vim = throw "Spacegray-vim has been removed: abandoned by upstream"; # Added 2025-03-24
122 surround = vim-surround;
123 sleuth = vim-sleuth;
124 solidity = vim-solidity;
125 stylish-haskell = vim-stylish-haskell;
126 stylishHaskell = vim-stylish-haskell; # backwards compat, added 2014-10-18
127 suda-vim = vim-suda; # backwards compat, added 2024-05-16
128 Supertab = supertab;
129 Syntastic = syntastic;
130 SyntaxRange = vim-SyntaxRange;
131 table-mode = vim-table-mode;
132 taglist = taglist-vim;
133 tabpagebuffer = tabpagebuffer-vim;
134 tabpagecd = vim-tabpagecd;
135 Tabular = tabular;
136 Tagbar = tagbar;
137 thumbnail = thumbnail-vim;
138 tlib = tlib_vim;
139 tmux-navigator = vim-tmux-navigator;
140 tmuxNavigator = vim-tmux-navigator; # backwards compat, added 2014-10-18
141 todo-nvim = throw "todo-nvim has been removed: abandoned by upstream"; # Added 2023-08-23
142 tslime = tslime-vim;
143 unite = unite-vim;
144 UltiSnips = ultisnips;
145 vim-addon-vim2nix = vim2nix;
146 vim-sourcetrail = throw "vim-sourcetrail has been removed: abandoned by upstream"; # Added 2022-08-14
147 vimproc = vimproc-vim;
148 vimshell = vimshell-vim;
149 vinegar = vim-vinegar;
150 watchdogs = vim-watchdogs;
151 WebAPI = webapi-vim;
152 wombat256 = wombat256-vim; # backwards compat, added 2015-7-8
153 yankring = YankRing-vim;
154 Yankring = YankRing-vim;
155 xterm-color-table = xterm-color-table-vim;
156 zeavim = zeavim-vim;
157 }
158 // deprecations
159)