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

22 lines
357 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";
};
};
config = mkIf cfg.enable {
colorscheme = "onedark";
extraPlugins = [ pkgs.vimPlugins.onedark-vim ];
2021-03-17 22:50:33 +00:00
options = {
termguicolors = true;
2021-03-17 22:44:10 +00:00
};
};
}