1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-03 15:41:03 +01:00
nixvim/plugins/colorschemes/onedark.nix
2021-03-17 22:53:04 +00:00

22 lines
430 B
Nix

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