mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-28 22:08:46 +02:00
tokyonight: package option
This commit is contained in:
parent
d09f7491ac
commit
5685547d62
1 changed files with 6 additions and 1 deletions
|
@ -9,6 +9,11 @@ in
|
|||
options = {
|
||||
colorschemes.tokyonight = {
|
||||
enable = mkEnableOption "Enable tokyonight";
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.tokyonight-nvim;
|
||||
description = "Plugin to use for tokyonight";
|
||||
};
|
||||
style = mkOption {
|
||||
type = style;
|
||||
default = "storm";
|
||||
|
@ -75,7 +80,7 @@ in
|
|||
};
|
||||
config = mkIf cfg.enable {
|
||||
colorscheme = "tokyonight";
|
||||
extraPlugins = [ pkgs.vimPlugins.tokyonight-nvim ];
|
||||
extraPlugins = [ cfg.package ];
|
||||
options = { termguicolors = true; };
|
||||
extraConfigLuaPre =
|
||||
let
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue