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 = {
|
options = {
|
||||||
colorschemes.tokyonight = {
|
colorschemes.tokyonight = {
|
||||||
enable = mkEnableOption "Enable tokyonight";
|
enable = mkEnableOption "Enable tokyonight";
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.vimPlugins.tokyonight-nvim;
|
||||||
|
description = "Plugin to use for tokyonight";
|
||||||
|
};
|
||||||
style = mkOption {
|
style = mkOption {
|
||||||
type = style;
|
type = style;
|
||||||
default = "storm";
|
default = "storm";
|
||||||
|
@ -75,7 +80,7 @@ in
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
colorscheme = "tokyonight";
|
colorscheme = "tokyonight";
|
||||||
extraPlugins = [ pkgs.vimPlugins.tokyonight-nvim ];
|
extraPlugins = [ cfg.package ];
|
||||||
options = { termguicolors = true; };
|
options = { termguicolors = true; };
|
||||||
extraConfigLuaPre =
|
extraConfigLuaPre =
|
||||||
let
|
let
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue