1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 19:46:06 +01:00
nixvim/plugins/colorschemes/one.nix

27 lines
411 B
Nix

{
lib,
helpers,
config,
pkgs,
...
}:
with lib; let
cfg = config.colorschemes.one;
in {
options = {
colorschemes.one = {
enable = mkEnableOption "vim-one";
package = helpers.mkPackageOption "one" pkgs.vimPlugins.vim-one;
};
};
config = mkIf cfg.enable {
colorscheme = "one";
extraPlugins = [cfg.package];
options = {
termguicolors = true;
};
};
}