Skip to content

Commit

Permalink
feat: can generate extras using custom colors and themes
Browse files Browse the repository at this point in the history
  • Loading branch information
olimorris committed Nov 13, 2024
1 parent 02888be commit b7acdc9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 10 additions & 0 deletions lua/onedarkpro/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
}

0 comments on commit b7acdc9

Please sign in to comment.