mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2026-05-01 02:57:56 +02:00
Merge 9fafcb7327 into 5e491e9659
This commit is contained in:
commit
94bd1fa2ae
3 changed files with 10 additions and 1 deletions
|
|
@ -266,6 +266,8 @@
|
|||
[`syntax-gaslighting`](https://github.com/NotAShelf/syntax-gaslighting.nvim),
|
||||
you're crazy.
|
||||
|
||||
- Added neovim builtin theme `habamax`.
|
||||
|
||||
[vagahbond](https://github.com/vagahbond): [codewindow.nvim]:
|
||||
https://github.com/gorbit99/codewindow.nvim
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,10 @@
|
|||
inherit (lib.trivial) boolToString warnIf;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
in {
|
||||
habamax = {
|
||||
builtin = true;
|
||||
setup = _: "vim.cmd('colorscheme habamax')";
|
||||
};
|
||||
base16 = {
|
||||
setup = {base16-colors, ...}: ''
|
||||
-- Base16 theme
|
||||
|
|
|
|||
|
|
@ -65,7 +65,10 @@ in {
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
vim = {
|
||||
startPlugins = [cfg.name];
|
||||
startPlugins =
|
||||
if (supportedThemes.${cfg.name} ? builtin) && supportedThemes.${cfg.name}.builtin
|
||||
then []
|
||||
else [cfg.name];
|
||||
luaConfigRC.theme = entryBefore ["pluginConfigs" "lazyConfigs"] ''
|
||||
${cfg.extraConfig}
|
||||
${supportedThemes.${cfg.name}.setup {inherit (cfg) style transparent base16-colors;}}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue