mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-13 05:57:49 +00:00
theme/habamax: add neovim builtin theme habamax
This commit is contained in:
parent
73cd50b04b
commit
d99e5fa289
3 changed files with 13 additions and 1 deletions
|
|
@ -29,5 +29,6 @@
|
||||||
|
|
||||||
- Added [tera](https://keats.github.io/tera/) language support (syntax highlighting only).
|
- Added [tera](https://keats.github.io/tera/) language support (syntax highlighting only).
|
||||||
- Added neovim theme `grubber-darker` <https://github.com/blazkowolf/gruber-darker.nvim>.
|
- Added neovim theme `grubber-darker` <https://github.com/blazkowolf/gruber-darker.nvim>.
|
||||||
|
- Added neovim builtin theme `habamax`.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,14 @@
|
||||||
inherit (lib.trivial) boolToString warnIf;
|
inherit (lib.trivial) boolToString warnIf;
|
||||||
inherit (lib.nvim.lua) toLuaObject;
|
inherit (lib.nvim.lua) toLuaObject;
|
||||||
in {
|
in {
|
||||||
|
habamax = {
|
||||||
|
builtin = true;
|
||||||
|
setup = _:
|
||||||
|
/*
|
||||||
|
lua
|
||||||
|
*/
|
||||||
|
"vim.cmd('colorscheme habamax')";
|
||||||
|
};
|
||||||
base16 = {
|
base16 = {
|
||||||
setup = {base16-colors, ...}: ''
|
setup = {base16-colors, ...}: ''
|
||||||
-- Base16 theme
|
-- Base16 theme
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,10 @@ in {
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
vim = {
|
vim = {
|
||||||
startPlugins = [cfg.name];
|
startPlugins =
|
||||||
|
if (supportedThemes.${cfg.name} ? builtin) && supportedThemes.${cfg.name}.builtin
|
||||||
|
then []
|
||||||
|
else [cfg.name];
|
||||||
luaConfigRC.theme = entryBefore ["pluginConfigs" "lazyConfigs"] ''
|
luaConfigRC.theme = entryBefore ["pluginConfigs" "lazyConfigs"] ''
|
||||||
${cfg.extraConfig}
|
${cfg.extraConfig}
|
||||||
${supportedThemes.${cfg.name}.setup {inherit (cfg) style transparent base16-colors;}}
|
${supportedThemes.${cfg.name}.setup {inherit (cfg) style transparent base16-colors;}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue