mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-21 11:14:40 +02:00
22 lines
430 B
Nix
22 lines
430 B
Nix
{ pkgs, config, lib, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.programs.nixvim.colorschemes.onedark;
|
|
in {
|
|
options = {
|
|
programs.nixvim.colorschemes.onedark = {
|
|
enable = mkEnableOption "Enable onedark";
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.nixvim = {
|
|
colorscheme = "onedark";
|
|
extraPlugins = [ pkgs.vimPlugins.onedark-vim ];
|
|
|
|
options = {
|
|
termguicolors = true;
|
|
};
|
|
};
|
|
};
|
|
}
|