mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-07 03:15:18 +02:00
Base16: package option
This commit is contained in:
parent
a12b790dce
commit
12e78b8a18
1 changed files with 7 additions and 1 deletions
|
@ -9,6 +9,12 @@ in
|
|||
colorschemes.base16 = {
|
||||
enable = mkEnableOption "Enable base16";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.base16-vim;
|
||||
description = "Plugin to use for base16";
|
||||
};
|
||||
|
||||
useTruecolor = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
|
@ -31,7 +37,7 @@ in
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
colorscheme = "base16-${cfg.colorscheme}";
|
||||
extraPlugins = [ pkgs.vimPlugins.base16-vim ];
|
||||
extraPlugins = [ cfg.package ];
|
||||
|
||||
plugins.airline.theme = mkIf (cfg.setUpBar) "base16";
|
||||
plugins.lightline.colorscheme = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue