Skip to content

Commit

Permalink
Merge branch 'papercolor-theme'
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrw committed May 14, 2024
2 parents 802da47 + afe5b8c commit 467cf98
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 31 deletions.
107 changes: 89 additions & 18 deletions home/colours.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,24 @@
lib,
...
}: let
dark-themes = [
"dracula"
"github"
"gruvbox"
"monochrome"
"monokai-pro"
"nord"
"one-dark"
"srw"
"catppuccin-frappe"
];
light-themes = [
"catppuccin-latte"
"github-light"
"solarized-light"
"papercolor"
];

# custom vim plugins for colour schemes
github-nvim-theme = pkgs.vimUtils.buildVimPlugin {
pname = "github-nvim-theme";
Expand Down Expand Up @@ -455,6 +473,50 @@
}
];
};
papercolor = rec {
# PaperColor Light 256 - alacritty color config
# https://github.com/NLKNguyen/papercolor-theme
# https://www.reddit.com/r/vim/comments/36xzbs/vim_paper_color_theme_inspired_by_googles/crqbfpa/
# Default colors
primary = {
background = "#eeeeee";
foreground = "#4d4d4c";
};

# Colors the cursor will use if `custom_cursor_colors` is true
cursor = {
text = "#f3f3f3";
cursor = "#4d4d4c";
};

# Normal colors
normal = {
black = "#ededed";
red = "#d7005f";
green = "#718c00";
yellow = "#d75f00";
blue = "#4271ae";
magenta = "#8959a8";
cyan = "#3e999f";
white = "#4d4d4c";
};

# Bright colors
bright = {
black = "#949494";
red = "#d7005f";
green = "#718c00";
yellow = "#d75f00";
blue = "#4271ae";
magenta = "#8959a8";
cyan = "#3e999f";
white = "#f5f5f5";
};
selection = {
text = normal.white;
background = normal.blue;
};
};
gruvbox = rec {
tmux-colour = normal.yellow;

Expand Down Expand Up @@ -669,6 +731,10 @@
};
};
neovim-theme-blocks = {
papercolor = ''
vim.cmd [[set background=light]]
vim.cmd [[colorscheme PaperColorSlim]]
'';
nord = ''
vim.g.nord_disable_background = true
vim.g.nord_italic = false
Expand Down Expand Up @@ -786,6 +852,7 @@
github-light = "github_light";
catppuccin-latte = "catppuccin_latte";
nord = "nord-custom";
papercolor = "papercolor-light";
}
.${config.me.theme}
or "monokai-pro-custom";
Expand All @@ -800,31 +867,32 @@
bat-theme =
{
github-light = "GitHub";
papercolor = "GitHub";
solarized-light = "Solarized (light)";
catppuccin-latte = "GitHub";
nord = "Nord";
}
.${config.me.theme}
or "Monokai Extended";

dark-themes = [
"dracula"
"github"
"gruvbox"
"monochrome"
"monokai-pro"
"nord"
"one-dark"
"srw"
"catppuccin-frappe"
];
light-themes = [
"catppuccin-latte"
"github-light"
"solarized-light"
];

is-dark-theme = builtins.elem config.me.theme dark-themes;
papercolor-theme-slim = pkgs.vimUtils.buildVimPlugin {
pname = "papercolor-theme-slim";
version = "unstable";
src = pkgs.fetchFromGitHub {
owner = "pappasam";
repo = "papercolor-theme-slim";
rev = "fc105bee31207ec97c329c70a5c8cb5f793cc054";
hash = "sha256-m/+Xsbve1fuzNEKpSK6Eddoi7gKcj04o1kSFy/H/m9w=";
};
};
delta-theme =
{
papercolor = "GitHub";
github-light = "GitHub";
}
.${config.me.theme}
or "Nord";
in
with lib; {
options = {
Expand All @@ -846,7 +914,7 @@ in
config = {
programs.bat.config.theme = bat-theme;
# TODO: make this configurable
programs.git.delta.options.syntax-theme = "Nord";
programs.git.delta.options.syntax-theme = delta-theme;
programs.helix.settings.theme = helix-theme;
programs.fish.interactiveShellInit = ''
# configure colour theme
Expand All @@ -867,6 +935,9 @@ in
programs.nixvim.extraConfigLuaPost = neovim-theme-blocks.${config.me.theme};
programs.nixvim.extraPlugins = with pkgs.vimPlugins;
{
papercolor = [
papercolor-theme-slim
];
github-light = [
github-nvim-theme
];
Expand Down
4 changes: 2 additions & 2 deletions home/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ in {
pkgs.monaspace
];
aws.enable = true;
theme = "nord";
theme = "papercolor";
vscode-theme = "Dracula";
defaults = {
browser = "brave";
terminal = "alacritty";
};
is-dark-theme = true;
is-dark-theme = false;
}
// (
if isLinux
Expand Down
11 changes: 0 additions & 11 deletions home/nixvim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,6 @@
};

# custom plugins
papercolor-theme-slim = pkgs.vimUtils.buildVimPlugin {
pname = "papercolor-theme-slim";
version = "unstable";
src = pkgs.fetchFromGitHub {
owner = "pappasam";
repo = "papercolor-theme-slim";
rev = "fc105bee31207ec97c329c70a5c8cb5f793cc054";
hash = "sha256-m/+Xsbve1fuzNEKpSK6Eddoi7gKcj04o1kSFy/H/m9w=";
};
};
nvim-nio = pkgs.vimUtils.buildVimPlugin {
pname = "nvim-nio";
version = "1.9.0";
Expand Down Expand Up @@ -322,7 +312,6 @@ in {
lsp-status-nvim
vim-test
nvim-nio
papercolor-theme-slim
];
extraConfigLua = ''
'';
Expand Down

0 comments on commit 467cf98

Please sign in to comment.