Merge pull request #166 from FrothyMarrow/oxocarbon-theme

theme/oxocarbon: add oxocarbon theme module
This commit is contained in:
NotAShelf 2023-10-21 01:45:03 +03:00 committed by GitHub
commit 34db883c69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 40 additions and 0 deletions

View file

@ -1332,6 +1332,23 @@
"type": "github" "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": { "plenary-nvim": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -1492,6 +1509,7 @@
"obsidian-nvim": "obsidian-nvim", "obsidian-nvim": "obsidian-nvim",
"onedark": "onedark", "onedark": "onedark",
"orgmode-nvim": "orgmode-nvim", "orgmode-nvim": "orgmode-nvim",
"oxocarbon": "oxocarbon",
"plenary-nvim": "plenary-nvim", "plenary-nvim": "plenary-nvim",
"presence-nvim": "presence-nvim", "presence-nvim": "presence-nvim",
"project-nvim": "project-nvim", "project-nvim": "project-nvim",

View file

@ -312,6 +312,11 @@
flake = false; flake = false;
}; };
oxocarbon = {
url = "github:glyh/oxocarbon.nvim/lualine-support";
flake = false;
};
# Rust crates # Rust crates
crates-nvim = { crates-nvim = {
url = "github:Saecki/crates.nvim"; url = "github:Saecki/crates.nvim";

View file

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

View file

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

View file

@ -77,4 +77,19 @@
''; '';
styles = ["latte" "frappe" "macchiato" "mocha"]; 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"];
};
} }