Skip to content

Commit

Permalink
Use catppuccin-mocha
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrw committed Sep 19, 2024
1 parent 9396017 commit 9421166
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 10 deletions.
13 changes: 13 additions & 0 deletions home/colours.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1047,6 +1047,19 @@
];
delta.options.features = "catppuccin-macchiato";
};
catppuccin-mocha =
if cfg.delta.diff-so-fancy
then {
delta.options.diff-so-fancy = true;
}
else {
includes = [
{
path = "${inputs.catppuccin-delta}/catppuccin.gitconfig";
}
];
delta.options.features = "catppuccin-mocha";
};
}
.${cfg.theme};

Expand Down
2 changes: 1 addition & 1 deletion home/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ in {
enable = true;
enableFishIntegration = true;
};
theme = "catppuccin-macchiato";
theme = "catppuccin-mocha";
vscode-theme = "Dracula";
defaults = {
browser = "brave";
Expand Down
35 changes: 26 additions & 9 deletions home/nixvim/base.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{pkgs, ...}: let
{pkgs, ...}:
let
keymap = {
key,
action,
Expand All @@ -11,6 +12,29 @@
silent = true;
};
};

# TOOD: unify with home configuration
colour-theme = "catppuccin-mocha";

theme-lua = {
catppuccin-macchiato = ''
-- remove underline from bottom of highlight section
vim.cmd([[
set background=dark
colorscheme catppuccin-macchiato
]])
vim.cmd.highlight({ 'TreesitterContextBottom', 'gui=none' })
'';
catppuccin-mocha = ''
-- remove underline from bottom of highlight section
vim.cmd([[
set background=dark
colorscheme catppuccin-mocha
]])
vim.cmd.highlight({ 'TreesitterContextBottom', 'gui=none' })
'';
}.${colour-theme};

in {
editorconfig.enable = false;
opts = {
Expand Down Expand Up @@ -259,14 +283,7 @@ in {
nvim-nio
catppuccin-nvim
];
extraConfigLua = ''
-- remove underline from bottom of highlight section
vim.cmd([[
set background=dark
colorscheme catppuccin-macchiato
]])
vim.cmd.highlight({ 'TreesitterContextBottom', 'gui=none' })
'';
extraConfigLua = theme-lua;
extraFiles = {
"colors/lucius.vim".source = ./colors/lucius.vim;
"colors/srw256.vim".source = ./colors/srw256.vim;
Expand Down

0 comments on commit 9421166

Please sign in to comment.