theme/oxocarbon: add oxocarbon theme module

This commit is contained in:
Frothy 2023-10-20 16:19:29 -06:00
parent d3585c9c83
commit e722c97188
5 changed files with 40 additions and 0 deletions

View File

@ -1332,6 +1332,23 @@
"type": "github"
}
},
"oxocarbon": {
"flake": false,
"locked": {
"lastModified": 1687168305,
"narHash": "sha256-2o++5aRDULfI35d+7psa6bk0eSXH2HwfuGjGtYGjR4w=",
"owner": "glyh",
"repo": "oxocarbon.nvim",
"rev": "7591d2e18df05374d612acba2b2573c7ff44dce4",
"type": "github"
},
"original": {
"owner": "glyh",
"ref": "lualine-support",
"repo": "oxocarbon.nvim",
"type": "github"
}
},
"plenary-nvim": {
"flake": false,
"locked": {
@ -1492,6 +1509,7 @@
"obsidian-nvim": "obsidian-nvim",
"onedark": "onedark",
"orgmode-nvim": "orgmode-nvim",
"oxocarbon": "oxocarbon",
"plenary-nvim": "plenary-nvim",
"presence-nvim": "presence-nvim",
"project-nvim": "project-nvim",

View File

@ -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";

View File

@ -42,6 +42,7 @@ with lib; let
"onedark"
"catppuccin"
"dracula"
"oxocarbon"
"minimap-vim"
"dashboard-nvim"
"alpha-nvim"

View File

@ -2,4 +2,5 @@
"tokyonight"
"onedark"
"catppuccin"
"oxocarbon"
]

View File

@ -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"];
};
}