mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-07 19:35:01 +02:00
one: package option
This commit is contained in:
parent
2f634aa3ce
commit
890fca6ea2
1 changed files with 7 additions and 1 deletions
|
@ -7,12 +7,18 @@ in
|
||||||
options = {
|
options = {
|
||||||
colorschemes.one = {
|
colorschemes.one = {
|
||||||
enable = mkEnableOption "Enable vim-one";
|
enable = mkEnableOption "Enable vim-one";
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.vimPlugins.vim-one;
|
||||||
|
description = "Plugin to use for one";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
colorscheme = "one";
|
colorscheme = "one";
|
||||||
extraPlugins = [ pkgs.vimPlugins.vim-one ];
|
extraPlugins = [ cfg.package ];
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
termguicolors = true;
|
termguicolors = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue