mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-19 18:25:11 +02:00
helpers/neovim-plugin/mkNeovimPlugin: add a colorscheme argument and factor out logic
This commit is contained in:
parent
9f9d9ac0b7
commit
3c9a4b67ae
3 changed files with 22 additions and 9 deletions
|
@ -8,7 +8,7 @@
|
|||
with lib;
|
||||
helpers.neovim-plugin.mkNeovimPlugin config {
|
||||
name = "ayu";
|
||||
namespace = "colorschemes";
|
||||
colorscheme = true;
|
||||
originalName = "neovim-ayu";
|
||||
defaultPackage = pkgs.vimPlugins.neovim-ayu;
|
||||
callSetup = false;
|
||||
|
@ -42,6 +42,9 @@ 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})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue