Skip to content

Commit

Permalink
chore: update nixvim options
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnvgr committed Apr 14, 2024
1 parent cda553b commit 14058ff
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 69 deletions.
2 changes: 1 addition & 1 deletion colorschemes/catppuccin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
slug = "catppuccin";
author = "https://github.com/catppuccin";

palette = rec {
palette = {
background = "#24273a"; # base
darkness = "#1e2030"; # mantle
void = "#181926"; # crust
Expand Down
74 changes: 38 additions & 36 deletions core/neovim/theme.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,42 +14,44 @@ in {
enable = true;
package = catppuccin-git;

transparent_background = !(isNull opacity || opacity == 1.0);

color_overrides.mocha = {
base = "#${palette.background}";
mantle = "#${palette.darkness}";
crust = "#${palette.void}";

surface0 = "#${palette.gray}";
surface1 = "#${palette.gray2}";
surface2 = "#${palette.gray3}";
overlay0 = "#${palette.gray4}";
overlay1 = "#${palette.gray5}";
overlay2 = "#${palette.gray6}";
subtext0 = "#${palette.gray7}";
subtext1 = "#${palette.gray8}";

text = "#${palette.text}";

red = "#${palette.red}";
green = "#${palette.green}";
yellow = "#${palette.yellow}";
blue = "#${palette.blue}";

peach = "#${palette.orange}";

mauve = "#${palette.violet}";
lavender = "#${palette.lavender}";

pink = "#${palette.pink}";
maroon = "#${palette.lipstick}";
flamingo = "#${palette.skin}";
rosewater = "#${palette.fawn}";

sapphire = "#${palette.sapphire}";
sky = "#${palette.sky}";
teal = "#${palette.teal}";
settings = {
transparent_background = !(isNull opacity || opacity == 1.0);

color_overrides.mocha = {
base = "#${palette.background}";
mantle = "#${palette.darkness}";
crust = "#${palette.void}";

surface0 = "#${palette.gray}";
surface1 = "#${palette.gray2}";
surface2 = "#${palette.gray3}";
overlay0 = "#${palette.gray4}";
overlay1 = "#${palette.gray5}";
overlay2 = "#${palette.gray6}";
subtext0 = "#${palette.gray7}";
subtext1 = "#${palette.gray8}";

text = "#${palette.text}";

red = "#${palette.red}";
green = "#${palette.green}";
yellow = "#${palette.yellow}";
blue = "#${palette.blue}";

peach = "#${palette.orange}";

mauve = "#${palette.violet}";
lavender = "#${palette.lavender}";

pink = "#${palette.pink}";
maroon = "#${palette.lipstick}";
flamingo = "#${palette.skin}";
rosewater = "#${palette.fawn}";

sapphire = "#${palette.sapphire}";
sky = "#${palette.sky}";
teal = "#${palette.teal}";
};
};
};

Expand Down
62 changes: 31 additions & 31 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion modules/desktop/apps/neovim/plugins/lsp/completion.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ in {

# Invert kinds
# credits: https://github.com/catppuccin/nvim/issues/667#issuecomment-1965426553
programs.nixvim.colorschemes.catppuccin.custom_highlights = /* lua */ ''
programs.nixvim.colorschemes.catppuccin.settings.custom_highlights = /* lua */ ''
function(C)
local cmpfn = require("catppuccin.groups.integrations.cmp")
setfenv(cmpfn.get, { C = C })
Expand Down

0 comments on commit 14058ff

Please sign in to comment.