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

28 lines
502 B
Nix
Raw Normal View History

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