mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +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 {
|
||||
name = "surround";
|
||||
name = "vim-surround";
|
||||
originalName = "surround.vim";
|
||||
package = "vim-surround";
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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