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,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.colorschemes.oxocarbon;
|
||||
in {
|
||||
options = {
|
||||
colorschemes.oxocarbon = {
|
||||
enable = mkEnableOption "oxocarbon";
|
||||
helpers.vim-plugin.mkVimPlugin config {
|
||||
name = "oxocarbon";
|
||||
isColorscheme = true;
|
||||
originalName = "oxocarbon.nvim";
|
||||
defaultPackage = pkgs.vimPlugins.oxocarbon-nvim;
|
||||
|
||||
package = helpers.mkPackageOption "oxocarbon" pkgs.vimPlugins.oxocarbon-nvim;
|
||||
};
|
||||
};
|
||||
maintainers = [lib.maintainers.GaetanLepage];
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
colorscheme = "oxocarbon";
|
||||
extraPlugins = [cfg.package];
|
||||
|
||||
opts.termguicolors = mkDefault true;
|
||||
extraConfig = cfg: {
|
||||
opts.termguicolors = lib.mkDefault true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue