Skip to content

Commit 092d1a8

Browse files
committed
plugins/surround: rename to vim-surround
Adding nvim-surround so we need to deprecate the generic name and move it.
1 parent 061d47f commit 092d1a8

File tree

4 files changed

+31
-13
lines changed

4 files changed

+31
-13
lines changed

plugins/by-name/surround/default.nix renamed to plugins/by-name/vim-surround/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
...
55
}:
66
helpers.vim-plugin.mkVimPlugin {
7-
name = "surround";
7+
name = "vim-surround";
88
originalName = "surround.vim";
99
package = "vim-surround";
1010

plugins/deprecation.nix

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,31 @@ let
1010
- `:PreviewQuery` to open the Query Editor (Nvim 0.10+)
1111
'';
1212
};
13+
renamed = {
14+
# Added 2024-09-17
15+
surround = "vim-surround";
16+
};
1317
in
1418
{
15-
imports = lib.mapAttrsToList (
16-
name:
17-
lib.mkRemovedOptionModule [
18-
"plugins"
19-
name
20-
]
21-
) removed;
19+
20+
imports =
21+
(lib.mapAttrsToList (
22+
name:
23+
lib.mkRemovedOptionModule [
24+
"plugins"
25+
name
26+
]
27+
) removed)
28+
++ (lib.mapAttrsToList (
29+
old: new:
30+
lib.mkRenamedOptionModule
31+
[
32+
"plugins"
33+
old
34+
]
35+
[
36+
"plugins"
37+
new
38+
]
39+
) renamed);
2240
}

tests/test-sources/plugins/by-name/surround/default.nix

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
empty = {
3+
plugins.vim-surround.enable = true;
4+
};
5+
}

0 commit comments

Comments
 (0)