colorschemes/base16: add settings + refactor

Added support for the plugin's "advanced" config settings.

Removed the enum restriction and prefix concatenation, allowing anything
to be passed through, including raw lua: fixes #1675

The theme list is now much shorter and is included directly in the option
description.

Some general cleanup, in particular to `extraConfig` and `customColorschemeType`.
This commit is contained in:
Matt Sturgeon 2024-06-11 20:42:40 +01:00
parent 6055d0f28c
commit c0ea106b4b
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
3 changed files with 165 additions and 281 deletions

View file

@ -1,12 +1,36 @@
{
# No empty test because not setting `colorscheme` would error
empty = {
colorschemes.base16.enable = true;
};
defaults = {
colorschemes.base16 = {
enable = true;
colorscheme = "gruvbox-dark-hard";
colorscheme = "schemer-dark";
setUpBar = true;
settings = {
telescope = true;
telescope_borders = false;
indentblankline = true;
notify = true;
ts_rainbow = true;
cmp = true;
illuminate = true;
lsp_semantic = true;
mini_completion = true;
dapui = true;
};
};
};
builtin-colorscheme = {
colorschemes.base16 = {
enable = true;
colorscheme = "gruvbox-dark-hard";
setUpBar = false;
};
};