nix-community.nixvim/plugins/colorschemes/one.nix

28 lines
486 B
Nix
Raw Normal View History

2021-03-17 22:51:01 +00:00
{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.colorschemes.one;
in
{
2021-03-17 22:51:01 +00:00
options = {
colorschemes.one = {
2021-03-17 22:51:01 +00:00
enable = mkEnableOption "Enable vim-one";
2023-01-16 22:40:08 +01:00
package = mkOption {
type = types.package;
default = pkgs.vimPlugins.vim-one;
description = "Plugin to use for one";
};
2021-03-17 22:51:01 +00:00
};
};
config = mkIf cfg.enable {
colorscheme = "one";
2023-01-16 22:40:08 +01:00
extraPlugins = [ cfg.package ];
2021-03-17 22:51:01 +00:00
options = {
termguicolors = true;
2021-03-17 22:51:01 +00:00
};
};
}