mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 01:04:34 +02:00
20 lines
562 B
Nix
20 lines
562 B
Nix
|
{ pkgs, config, lib, ... }:
|
||
|
with lib;
|
||
|
let
|
||
|
cfg = config.programs.nixvim.colorschemes.base16;
|
||
|
colors = types.enum [ "bg" "red" "green" "yellow" "blue" "purple" "aqua" "gray" "fg" "bg0_h" "bg0" "bg1" "bg2" "bg3" "bg4" "gray" "orange" "bg0_s" "fg0" "fg1" "fg2" "fg3" "fg4" ];
|
||
|
in {
|
||
|
options = {
|
||
|
programs.nixvim.colorschemes.base16 = {
|
||
|
enable = mkEnableOption "Enable base16";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
programs.nixvim = {
|
||
|
colorscheme = "base16-default-dark";
|
||
|
extraPlugins = [ pkgs.vimPlugins.base16-vim ];
|
||
|
};
|
||
|
};
|
||
|
}
|