mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-10 04:46:04 +02:00
Merge 5a43670e7e
into a16c89c175
This commit is contained in:
commit
73188ee4d1
4 changed files with 29 additions and 43 deletions
|
@ -1,11 +1,9 @@
|
||||||
{
|
{ lib, ... }:
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
lib.nixvim.plugins.mkNeovimPlugin {
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
name = "gruvbox-material";
|
name = "gruvbox-material-nvim";
|
||||||
isColorscheme = true;
|
isColorscheme = true;
|
||||||
|
colorscheme = "gruvbox-material";
|
||||||
|
moduleName = "gruvbox-material";
|
||||||
packPathName = "gruvbox-material.nvim";
|
packPathName = "gruvbox-material.nvim";
|
||||||
package = "gruvbox-material-nvim";
|
package = "gruvbox-material-nvim";
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
./colorschemes/everforest.nix
|
./colorschemes/everforest.nix
|
||||||
./colorschemes/github-theme.nix
|
./colorschemes/github-theme.nix
|
||||||
./colorschemes/gruvbox.nix
|
./colorschemes/gruvbox.nix
|
||||||
./colorschemes/gruvbox-material.nix
|
./colorschemes/gruvbox-material-nvim.nix
|
||||||
./colorschemes/kanagawa.nix
|
./colorschemes/kanagawa.nix
|
||||||
./colorschemes/kanagawa-paper.nix
|
./colorschemes/kanagawa-paper.nix
|
||||||
./colorschemes/melange.nix
|
./colorschemes/melange.nix
|
||||||
|
|
|
@ -7,7 +7,7 @@ let
|
||||||
It is recommended to use `rustaceanvim` instead.
|
It is recommended to use `rustaceanvim` instead.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
removed = {
|
removed.plugins = {
|
||||||
# Added 2023-08-29
|
# Added 2023-08-29
|
||||||
treesitter-playground = ''
|
treesitter-playground = ''
|
||||||
The `treesitter-playground` plugin has been deprecated since the functionality is included in Neovim.
|
The `treesitter-playground` plugin has been deprecated since the functionality is included in Neovim.
|
||||||
|
@ -23,7 +23,13 @@ let
|
||||||
It is recommended to use `plugins.pckr` or `plugins.lazy` instead.
|
It is recommended to use `plugins.pckr` or `plugins.lazy` instead.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
renamed = {
|
renamed.colorschemes = {
|
||||||
|
# Added 2025-07-15
|
||||||
|
# NOTE: The old name is not in a stable version and was only in unstable for a few weeks,
|
||||||
|
# so we can remove this alias more quickly than usual.
|
||||||
|
gruvbox-material = "gruvbox-material-nvim";
|
||||||
|
};
|
||||||
|
renamed.plugins = {
|
||||||
# Added 2024-09-17
|
# Added 2024-09-17
|
||||||
surround = "vim-surround";
|
surround = "vim-surround";
|
||||||
};
|
};
|
||||||
|
@ -46,43 +52,25 @@ in
|
||||||
{
|
{
|
||||||
|
|
||||||
imports =
|
imports =
|
||||||
(lib.mapAttrsToList (
|
|
||||||
name:
|
|
||||||
lib.mkRemovedOptionModule [
|
|
||||||
"plugins"
|
|
||||||
name
|
|
||||||
]
|
|
||||||
) removed)
|
|
||||||
++ (lib.mapAttrsToList (
|
|
||||||
old: new: lib.mkRenamedOptionModule [ "plugins" old ] [ "plugins" new ]
|
|
||||||
) renamed)
|
|
||||||
# TODO: introduced 2025-04-19
|
# TODO: introduced 2025-04-19
|
||||||
++ [
|
[
|
||||||
(lib.mkRenamedOptionModule
|
(lib.mkRenamedOptionModule
|
||||||
[
|
[ "plugins" "codeium-nvim" "enable" ]
|
||||||
"plugins"
|
[ "plugins" "windsurf-nvim" "enable" ]
|
||||||
"codeium-nvim"
|
|
||||||
"enable"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"plugins"
|
|
||||||
"windsurf-nvim"
|
|
||||||
"enable"
|
|
||||||
]
|
|
||||||
)
|
)
|
||||||
(lib.mkRenamedOptionModule
|
(lib.mkRenamedOptionModule
|
||||||
[
|
[ "plugins" "codeium-vim" "enable" ]
|
||||||
"plugins"
|
[ "plugins" "windsurf-vim" "enable" ]
|
||||||
"codeium-vim"
|
|
||||||
"enable"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"plugins"
|
|
||||||
"windsurf-vim"
|
|
||||||
"enable"
|
|
||||||
]
|
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
++ lib.foldlAttrs (
|
||||||
|
acc: scope: removed':
|
||||||
|
acc ++ lib.mapAttrsToList (name: msg: lib.mkRemovedOptionModule [ scope name ] msg) removed'
|
||||||
|
) [ ] removed
|
||||||
|
++ lib.foldlAttrs (
|
||||||
|
acc: scope: renamed':
|
||||||
|
acc ++ lib.mapAttrsToList (old: new: lib.mkRenamedOptionModule [ scope old ] [ scope new ]) renamed'
|
||||||
|
) [ ] renamed
|
||||||
++ builtins.map (
|
++ builtins.map (
|
||||||
name:
|
name:
|
||||||
lib.mkRemovedOptionModule [ "plugins" name "iconsPackage" ] ''
|
lib.mkRemovedOptionModule [ "plugins" name "iconsPackage" ] ''
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
empty = {
|
empty = {
|
||||||
colorschemes.gruvbox-material.enable = true;
|
colorschemes.gruvbox-material-nvim.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
defaults = {
|
defaults = {
|
||||||
colorschemes.gruvbox-material = {
|
colorschemes.gruvbox-material-nvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
example = {
|
example = {
|
||||||
colorschemes.gruvbox-material = {
|
colorschemes.gruvbox-material-nvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
Loading…
Add table
Add a link
Reference in a new issue