mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 10:48:35 +02:00
colorschemes/oxocarbon: switch to mkVimPlugin
This commit is contained in:
parent
b38f24f348
commit
48acee7dca
1 changed files with 8 additions and 14 deletions
|
@ -5,21 +5,15 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
helpers.vim-plugin.mkVimPlugin config {
|
||||||
cfg = config.colorschemes.oxocarbon;
|
name = "oxocarbon";
|
||||||
in {
|
isColorscheme = true;
|
||||||
options = {
|
originalName = "oxocarbon.nvim";
|
||||||
colorschemes.oxocarbon = {
|
defaultPackage = pkgs.vimPlugins.oxocarbon-nvim;
|
||||||
enable = mkEnableOption "oxocarbon";
|
|
||||||
|
|
||||||
package = helpers.mkPackageOption "oxocarbon" pkgs.vimPlugins.oxocarbon-nvim;
|
maintainers = [lib.maintainers.GaetanLepage];
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
extraConfig = cfg: {
|
||||||
colorscheme = "oxocarbon";
|
opts.termguicolors = lib.mkDefault true;
|
||||||
extraPlugins = [cfg.package];
|
|
||||||
|
|
||||||
opts.termguicolors = mkDefault true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue