Skip to content

Commit

Permalink
theme/oxocarbon: add oxocarbon theme module
Browse files Browse the repository at this point in the history
  • Loading branch information
FrothyMarrow committed Oct 20, 2023
1 parent d3585c9 commit e722c97
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 0 deletions.
18 changes: 18 additions & 0 deletions flake.lock

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

5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,11 @@
flake = false;
};

oxocarbon = {
url = "github:glyh/oxocarbon.nvim/lualine-support";
flake = false;
};

# Rust crates
crates-nvim = {
url = "github:Saecki/crates.nvim";
Expand Down
1 change: 1 addition & 0 deletions lib/types/plugins.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ with lib; let
"onedark"
"catppuccin"
"dracula"
"oxocarbon"
"minimap-vim"
"dashboard-nvim"
"alpha-nvim"
Expand Down
1 change: 1 addition & 0 deletions modules/statusline/lualine/supported_themes.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
"tokyonight"
"onedark"
"catppuccin"
"oxocarbon"
]
15 changes: 15 additions & 0 deletions modules/theme/supported_themes.nix
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,19 @@
'';
styles = ["latte" "frappe" "macchiato" "mocha"];
};

oxocarbon = {
setup = {
style ? "dark",
transparent ? false,
}: let
style' =
lib.warnIf (style == "light") "oxocarbon: light theme is not well-supported" style;
in ''
require('oxocarbon')
vim.opt.background = "${style'}"
vim.cmd.colorscheme = "oxocarbon"
'';
styles = ["dark" "light"];
};
}

0 comments on commit e722c97

Please sign in to comment.