mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
@@ -11,10 +11,7 @@ let
|
||||
cfg = config.theme.base16;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./integrations/kitty
|
||||
./integrations/neovim
|
||||
];
|
||||
imports = [ ./integrations/kitty ];
|
||||
|
||||
options.theme.base16 = {
|
||||
enable = mkEnableOption "Enable a global base16 theme";
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
-- Base16 {{scheme-name}} - nvim color config
|
||||
-- Scheme by {{scheme-author}}
|
||||
|
||||
require('base16-colorscheme').setup({
|
||||
base00 = '#{{base00-hex}}',
|
||||
base01 = '#{{base01-hex}}',
|
||||
base02 = '#{{base02-hex}}',
|
||||
base03 = '#{{base03-hex}}',
|
||||
base04 = '#{{base04-hex}}',
|
||||
base05 = '#{{base05-hex}}',
|
||||
base06 = '#{{base06-hex}}',
|
||||
base07 = '#{{base07-hex}}',
|
||||
base08 = '#{{base08-hex}}',
|
||||
base09 = '#{{base09-hex}}',
|
||||
base0A = '#{{base0A-hex}}',
|
||||
base0B = '#{{base0B-hex}}',
|
||||
base0C = '#{{base0C-hex}}',
|
||||
base0D = '#{{base0D-hex}}',
|
||||
base0E = '#{{base0E-hex}}',
|
||||
base0F = '#{{base0F-hex}}'
|
||||
})
|
||||
@@ -1,33 +0,0 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.theme.base16;
|
||||
in
|
||||
{
|
||||
config = mkIf cfg.enable {
|
||||
programs.nixvim = {
|
||||
extraConfigLuaPre = ''
|
||||
require('flavours-colors')
|
||||
'';
|
||||
extraPlugins = [ pkgs.vimPlugins.base16-nvim ];
|
||||
};
|
||||
|
||||
xdg.configFile."flavours/templates/nvim/templates/default.mustache".source = ./default.mustache;
|
||||
|
||||
theme.base16.options.items = [
|
||||
{
|
||||
file = "${config.xdg.configHome}/nvim/lua/flavours-colors.lua";
|
||||
template = "nvim";
|
||||
#hook = "kill -SIGUSR1 $(pgrep kitty)";
|
||||
rewrite = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user