mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-24 12:45:24 +02:00
18 lines
428 B
Nix
18 lines
428 B
Nix
|
{ pkgs, config, lib, ... }:
|
||
|
with lib;
|
||
|
let cfg = config.programs.nixvim.colorschemes.tokyonight;
|
||
|
in {
|
||
|
options = {
|
||
|
programs.nixvim.colorschemes.tokyonight = {
|
||
|
enable = mkEnableOption "Enable tokyonight";
|
||
|
};
|
||
|
};
|
||
|
config = mkIf cfg.enable {
|
||
|
programs.nixvim = {
|
||
|
colorscheme = "tokyonight";
|
||
|
extraPlugins = [ pkgs.vimPlugins.tokyonight-nvim ];
|
||
|
options = { termguicolors = true; };
|
||
|
};
|
||
|
};
|
||
|
}
|