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