mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-21 11:14:40 +02:00
27 lines
495 B
Nix
27 lines
495 B
Nix
{ pkgs, config, lib, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.colorschemes.onedark;
|
|
in
|
|
{
|
|
options = {
|
|
colorschemes.onedark = {
|
|
enable = mkEnableOption "onedark";
|
|
|
|
package = mkOption {
|
|
type = types.package;
|
|
default = pkgs.vimPlugins.onedark-vim;
|
|
description = "Plugin to use for one";
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
colorscheme = "onedark";
|
|
extraPlugins = [ cfg.package ];
|
|
|
|
options = {
|
|
termguicolors = true;
|
|
};
|
|
};
|
|
}
|