mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-22 18:29:40 +01:00
colorschemes/ayu: migrate to by-name
This commit is contained in:
parent
269147983c
commit
bf957e1e0b
3 changed files with 0 additions and 1 deletions
|
|
@ -1,47 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib.nixvim) defaultNullOpts toLuaObject;
|
||||
in
|
||||
lib.nixvim.plugins.mkNeovimPlugin {
|
||||
name = "ayu";
|
||||
isColorscheme = true;
|
||||
package = "neovim-ayu";
|
||||
# The colorscheme option is set by the `setup` function.
|
||||
colorscheme = null;
|
||||
callSetup = false;
|
||||
|
||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||
|
||||
deprecateExtraOptions = true;
|
||||
optionsRenamedToSettings = [
|
||||
"mirage"
|
||||
"overrides"
|
||||
];
|
||||
|
||||
settingsOptions = {
|
||||
mirage = defaultNullOpts.mkBool false ''
|
||||
Set to `true` to use `mirage` variant instead of `dark` for dark background.
|
||||
'';
|
||||
|
||||
overrides = defaultNullOpts.mkStrLuaOr (with lib.types; attrsOf highlight) { } ''
|
||||
A dictionary of group names, each associated with a dictionary of parameters
|
||||
(`bg`, `fg`, `sp` and `style`) and colors in hex.
|
||||
|
||||
Alternatively, `overrides` can be a function that returns a dictionary of the same
|
||||
format.
|
||||
You can use the function to override based on a dynamic condition, such as the value of
|
||||
`background`.
|
||||
'';
|
||||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
colorschemes.ayu.luaConfig.content = ''
|
||||
local ayu = require("ayu")
|
||||
ayu.setup(${toLuaObject cfg.settings})
|
||||
ayu.colorscheme()
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
@ -2,7 +2,6 @@
|
|||
imports = [
|
||||
./cmp
|
||||
|
||||
./colorschemes/ayu.nix
|
||||
./colorschemes/bamboo.nix
|
||||
./colorschemes/base16
|
||||
./colorschemes/catppuccin.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue