mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-02 21:34:33 +02:00
27 lines
450 B
Nix
27 lines
450 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.colorschemes.one;
|
|
helpers = import ../helpers.nix {inherit lib;};
|
|
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;
|
|
};
|
|
};
|
|
}
|