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