1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-24 19:29:41 +01:00
nixvim/plugins/colorschemes/onedark.nix

27 lines
427 B
Nix

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