mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-28 14:45:26 +02:00
plugins/colorschemes: migrate helpers -> lib.nixvim
This commit is contained in:
parent
b470800240
commit
fba168aba7
20 changed files with 236 additions and 220 deletions
|
@ -1,12 +1,14 @@
|
|||
{
|
||||
lib,
|
||||
helpers,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
helpers.neovim-plugin.mkNeovimPlugin config {
|
||||
let
|
||||
inherit (lib.nixvim) defaultNullOpts toLuaObject;
|
||||
in
|
||||
lib.nixvim.neovim-plugin.mkNeovimPlugin config {
|
||||
name = "ayu";
|
||||
isColorscheme = true;
|
||||
originalName = "neovim-ayu";
|
||||
|
@ -24,11 +26,11 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
|||
];
|
||||
|
||||
settingsOptions = {
|
||||
mirage = helpers.defaultNullOpts.mkBool false ''
|
||||
mirage = defaultNullOpts.mkBool false ''
|
||||
Set to `true` to use `mirage` variant instead of `dark` for dark background.
|
||||
'';
|
||||
|
||||
overrides = helpers.defaultNullOpts.mkStrLuaOr (with helpers.nixvimTypes; attrsOf highlight) { } ''
|
||||
overrides = defaultNullOpts.mkStrLuaOr (with types; attrsOf highlight) { } ''
|
||||
A dictionary of group names, each associated with a dictionary of parameters
|
||||
(`bg`, `fg`, `sp` and `style`) and colors in hex.
|
||||
|
||||
|
@ -42,7 +44,7 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
|||
extraConfig = cfg: {
|
||||
extraConfigLuaPre = ''
|
||||
local ayu = require("ayu")
|
||||
ayu.setup(${helpers.toLuaObject cfg.settings})
|
||||
ayu.setup(${toLuaObject cfg.settings})
|
||||
ayu.colorscheme()
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue