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:
Austin Horstman 2024-09-17 22:46:00 -05:00
parent 061d47f7c5
commit 092d1a8a9c
No known key found for this signature in database
4 changed files with 31 additions and 13 deletions

View file

@ -10,13 +10,31 @@ let
- `:PreviewQuery` to open the Query Editor (Nvim 0.10+)
'';
};
renamed = {
# Added 2024-09-17
surround = "vim-surround";
};
in
{
imports = lib.mapAttrsToList (
name:
lib.mkRemovedOptionModule [
"plugins"
name
]
) removed;
imports =
(lib.mapAttrsToList (
name:
lib.mkRemovedOptionModule [
"plugins"
name
]
) removed)
++ (lib.mapAttrsToList (
old: new:
lib.mkRenamedOptionModule
[
"plugins"
old
]
[
"plugins"
new
]
) renamed);
}