nix-community.nixvim/plugins/colorschemes/one.nix
2024-03-27 13:31:52 +01:00

30 lines
575 B
Nix

{
lib,
helpers,
config,
pkgs,
...
}:
helpers.vim-plugin.mkVimPlugin config {
name = "one";
isColorscheme = true;
originalName = "vim-one";
defaultPackage = pkgs.vimPlugins.vim-one;
globalPrefix = "one_";
maintainers = [lib.maintainers.GaetanLepage];
settingsOptions = {
allow_italics = helpers.defaultNullOpts.mkBool false ''
Whether to enable _italic_ (as long as your terminal supports it).
'';
};
settingsExample = {
allow_italics = true;
};
extraConfig = cfg: {
options.termguicolors = lib.mkDefault true;
};
}