-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(mini.hues) NEW MODULE: initial commit.
- Loading branch information
1 parent
cd628e1
commit ce94001
Showing
12 changed files
with
2,695 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
local hues = require('mini.hues') | ||
|
||
-- Generate random config with initialized random seed (otherwise it won't be | ||
-- random during startup) | ||
math.randomseed(vim.loop.hrtime()) | ||
local base_colors = hues.gen_random_base_colors() | ||
|
||
hues.setup({ | ||
background = base_colors.background, | ||
foreground = base_colors.foreground, | ||
n_hues = 8, | ||
saturation = vim.o.background == 'dark' and 'medium' or 'high', | ||
accent = 'bg', | ||
}) | ||
|
||
vim.g.colors_name = 'randomhue' |
Oops, something went wrong.