nix-community.nixvim/plugins/colorschemes/one.nix
2023-01-22 03:32:08 +00:00

27 lines
479 B
Nix

{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.colorschemes.one;
in
{
options = {
colorschemes.one = {
enable = mkEnableOption "vim-one";
package = mkOption {
type = types.package;
default = pkgs.vimPlugins.vim-one;
description = "Plugin to use for one";
};
};
};
config = mkIf cfg.enable {
colorscheme = "one";
extraPlugins = [ cfg.package ];
options = {
termguicolors = true;
};
};
}