mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-03 01:25:22 +02:00
24 lines
462 B
Nix
24 lines
462 B
Nix
{ pkgs, config, lib, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.colorschemes.onedark;
|
|
helpers = import ../helpers.nix { inherit lib; };
|
|
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;
|
|
};
|
|
};
|
|
}
|