tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
vimPlugins.corePlugins: move to dedicated overlay file
Matt Sturgeon
4 months ago
8f9fb202
70ec3948
+34
-31
3 changed files
expand all
collapse all
unified
split
pkgs
applications
editors
vim
plugins
corePlugins.nix
default.nix
overrides.nix
+31
pkgs/applications/editors/vim/plugins/corePlugins.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{
2
+
symlinkJoin,
3
+
}:
4
+
final: prev: {
5
+
6
+
corePlugins = symlinkJoin {
7
+
name = "core-vim-plugins";
8
+
paths = with final; [
9
+
# plugin managers
10
+
lazy-nvim
11
+
mini-deps
12
+
packer-nvim
13
+
vim-plug
14
+
15
+
# core dependencies
16
+
plenary-nvim
17
+
18
+
# popular plugins
19
+
mini-nvim
20
+
nvim-cmp
21
+
nvim-lspconfig
22
+
nvim-treesitter
23
+
vim-airline
24
+
vim-fugitive
25
+
vim-surround
26
+
];
27
+
28
+
meta.description = "Collection of popular vim plugins (for internal testing purposes)";
29
+
};
30
+
31
+
}
+3
pkgs/applications/editors/vim/plugins/default.nix
···
48
inherit (neovimUtils) buildNeovimPlugin;
49
};
50
0
0
51
# TL;DR
52
# * Add your plugin to ./vim-plugin-names
53
# * run ./update.py
···
66
(extends luaPackagePlugins)
67
(extends nodePackagePlugins)
68
(extends nonGeneratedPlugins)
0
69
(extends overrides)
70
(extends aliases)
71
lib.makeExtensible
···
48
inherit (neovimUtils) buildNeovimPlugin;
49
};
50
51
+
corePlugins = callPackage ./corePlugins.nix { };
52
+
53
# TL;DR
54
# * Add your plugin to ./vim-plugin-names
55
# * run ./update.py
···
68
(extends luaPackagePlugins)
69
(extends nodePackagePlugins)
70
(extends nonGeneratedPlugins)
71
+
(extends corePlugins)
72
(extends overrides)
73
(extends aliases)
74
lib.makeExtensible
-31
pkgs/applications/editors/vim/plugins/overrides.nix
···
9
fetchurl,
10
neovimUtils,
11
replaceVars,
12
-
symlinkJoin,
13
# Language dependencies
14
fetchYarnDeps,
15
mkYarnModules,
···
137
buildNeoVimPlugin = throw "New plugin definitions should be done outside `overrides.nix`";
138
in
139
{
140
-
corePlugins = symlinkJoin {
141
-
name = "core-vim-plugins";
142
-
paths = with self; [
143
-
# plugin managers
144
-
lazy-nvim
145
-
mini-deps
146
-
packer-nvim
147
-
vim-plug
148
-
149
-
# core dependencies
150
-
plenary-nvim
151
-
152
-
# popular plugins
153
-
mini-nvim
154
-
nvim-cmp
155
-
nvim-lspconfig
156
-
nvim-treesitter
157
-
vim-airline
158
-
vim-fugitive
159
-
vim-surround
160
-
];
161
-
162
-
meta = {
163
-
description = "Collection of popular vim plugins (for internal testing purposes)";
164
-
};
165
-
};
166
-
167
-
#######################
168
-
# Regular overrides
169
-
170
advanced-git-search-nvim = super.advanced-git-search-nvim.overrideAttrs {
171
checkInputs = with self; [
172
snacks-nvim
···
9
fetchurl,
10
neovimUtils,
11
replaceVars,
0
12
# Language dependencies
13
fetchYarnDeps,
14
mkYarnModules,
···
136
buildNeoVimPlugin = throw "New plugin definitions should be done outside `overrides.nix`";
137
in
138
{
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
139
advanced-git-search-nvim = super.advanced-git-search-nvim.overrideAttrs {
140
checkInputs = with self; [
141
snacks-nvim