From b7acdc9e74074b5e64b93ab8869ee36089d72177 Mon Sep 17 00:00:00 2001 From: Oli Morris Date: Wed, 13 Nov 2024 16:58:17 +0000 Subject: [PATCH] feat: can generate extras using custom colors and themes --- README.md | 1 + lua/onedarkpro/commands.lua | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/README.md b/README.md index bc992b0..8329b00 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,7 @@ The colorscheme comes with some useful commands: - `:OneDarkProCache` force generate new cache files for the themes (you won't often need this) - `:OneDarkProClean` removes existing cache files for the themes - `:OneDarkProColors` output all of the current themes colors to a scratch buffer +- `:OneDarkProExtras` generates the extras files from the `/extras` folder using your config ## :wrench: Configuration diff --git a/lua/onedarkpro/commands.lua b/lua/onedarkpro/commands.lua index b25e101..646ecc7 100644 --- a/lua/onedarkpro/commands.lua +++ b/lua/onedarkpro/commands.lua @@ -29,4 +29,14 @@ return { range = false, }, }, + { + cmd = "OneDarkProExtras", + callback = function() + require("onedarkpro.extra").setup({ user_config = true }) + end, + opts = { + desc = "Export the extra themes based on a user's config", + range = false, + }, + }, }