mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/surround: rename to vim-surround
Adding nvim-surround so we need to deprecate the generic name and move it.
This commit is contained in:
parent
061d47f7c5
commit
092d1a8a9c
4 changed files with 31 additions and 13 deletions
|
@ -4,7 +4,7 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
helpers.vim-plugin.mkVimPlugin {
|
helpers.vim-plugin.mkVimPlugin {
|
||||||
name = "surround";
|
name = "vim-surround";
|
||||||
originalName = "surround.vim";
|
originalName = "surround.vim";
|
||||||
package = "vim-surround";
|
package = "vim-surround";
|
||||||
|
|
|
@ -10,13 +10,31 @@ let
|
||||||
- `:PreviewQuery` to open the Query Editor (Nvim 0.10+)
|
- `:PreviewQuery` to open the Query Editor (Nvim 0.10+)
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
renamed = {
|
||||||
|
# Added 2024-09-17
|
||||||
|
surround = "vim-surround";
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = lib.mapAttrsToList (
|
|
||||||
|
imports =
|
||||||
|
(lib.mapAttrsToList (
|
||||||
name:
|
name:
|
||||||
lib.mkRemovedOptionModule [
|
lib.mkRemovedOptionModule [
|
||||||
"plugins"
|
"plugins"
|
||||||
name
|
name
|
||||||
]
|
]
|
||||||
) removed;
|
) removed)
|
||||||
|
++ (lib.mapAttrsToList (
|
||||||
|
old: new:
|
||||||
|
lib.mkRenamedOptionModule
|
||||||
|
[
|
||||||
|
"plugins"
|
||||||
|
old
|
||||||
|
]
|
||||||
|
[
|
||||||
|
"plugins"
|
||||||
|
new
|
||||||
|
]
|
||||||
|
) renamed);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
empty = {
|
|
||||||
plugins.surround.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.vim-surround.enable = true;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue