one: init colorscheme

This commit is contained in:
Pedro Alves 2021-03-17 22:51:01 +00:00
parent d3252f7be8
commit c3fc078107
3 changed files with 28 additions and 4 deletions

View file

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

View file

@ -2,6 +2,7 @@
imports = [
./colorschemes/gruvbox.nix
./colorschemes/onedark.nix
./colorschemes/one.nix
./colorschemes/base16.nix
./statuslines/lightline.nix