nvf/modules/plugins/theme/supported-themes/onedark.nix
Charlie Root a37625c3b0
confusion
2025-01-18 22:45:57 +01:00

26 lines
496 B
Nix

{
config,
lib,
...
}: let
inherit (lib.options) mkOption;
inherit (lib.types) str;
inherit (lib.nvim.types) mkPluginSetupOption;
cfg = config.vim.theme;
in {
onedark = {
setupOpts = mkPluginSetupOption "onedark" {
style = mkOption {
type = str;
default = cfg.style;
internal = true;
};
};
setup = ''
-- OneDark theme
require('onedark').load()
'';
styles = ["dark" "darker" "cool" "deep" "warm" "warmer"];
};
}