mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-28 06:35:05 +02:00
helpers: refactor mk[Neo]vimPlugin for colorschemes handling
This commit is contained in:
parent
61ee0552c9
commit
cf7102c6d2
5 changed files with 18 additions and 19 deletions
|
@ -8,9 +8,11 @@
|
|||
with lib;
|
||||
helpers.neovim-plugin.mkNeovimPlugin config {
|
||||
name = "ayu";
|
||||
colorscheme = true;
|
||||
isColorscheme = true;
|
||||
originalName = "neovim-ayu";
|
||||
defaultPackage = pkgs.vimPlugins.neovim-ayu;
|
||||
# The colorscheme option is set by the `setup` function.
|
||||
colorscheme = null;
|
||||
callSetup = false;
|
||||
|
||||
maintainers = [maintainers.GaetanLepage];
|
||||
|
@ -42,9 +44,6 @@ with lib;
|
|||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
# The colorscheme option is set by the `setup` function.
|
||||
colorscheme = null;
|
||||
|
||||
extraConfigLuaPre = ''
|
||||
local ayu = require("ayu")
|
||||
ayu.setup(${helpers.toLuaObject cfg.settings})
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
}:
|
||||
helpers.neovim-plugin.mkNeovimPlugin config {
|
||||
name = "gruvbox";
|
||||
colorscheme = true;
|
||||
isColorscheme = true;
|
||||
originalName = "gruvbox.nvim";
|
||||
defaultPackage = pkgs.vimPlugins.gruvbox-nvim;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
}:
|
||||
helpers.vim-plugin.mkVimPlugin config {
|
||||
name = "nord";
|
||||
colorscheme = true;
|
||||
isColorscheme = true;
|
||||
originalName = "nord.nvim";
|
||||
defaultPackage = pkgs.vimPlugins.nord-nvim;
|
||||
globalPrefix = "nord_";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue