Theme: Added Gruvbox

This commit is contained in:
Donnerinoern 2024-01-17 21:08:36 +01:00
parent 272cd17e42
commit e8acabee78
6 changed files with 64 additions and 0 deletions

View File

@ -21,3 +21,7 @@ Release notes for release 0.6
- Deprecated `presence.nvim` in favor of `neocord`. This means `vim.rich-presence.presence-nvim` is removed and will throw
a warning if used. You are recommended to rewrite your neocord config from scratch based on the
[official documentation](https://github.com/IogaMaster/neocord)
[donnerinoern](https://github.com/donnerinoern):
- Added Gruvbox theme

View File

@ -533,6 +533,22 @@
"type": "github"
}
},
"gruvbox": {
"flake": false,
"locked": {
"lastModified": 1704132908,
"narHash": "sha256-p/y65ub1qL+5g0ZiWzaTyQeiP7LtVfsdcdJ0eb0A7Og=",
"owner": "ellisonleao",
"repo": "gruvbox.nvim",
"rev": "4176b0b720db0c90ab4030e5c1b4893faf41fd51",
"type": "github"
},
"original": {
"owner": "ellisonleao",
"repo": "gruvbox.nvim",
"type": "github"
}
},
"highlight-undo": {
"flake": false,
"locked": {
@ -1497,6 +1513,7 @@
"gesture-nvim": "gesture-nvim",
"gitsigns-nvim": "gitsigns-nvim",
"glow-nvim": "glow-nvim",
"gruvbox": "gruvbox",
"highlight-undo": "highlight-undo",
"hop-nvim": "hop-nvim",
"icon-picker-nvim": "icon-picker-nvim",

View File

@ -341,6 +341,11 @@
flake = false;
};
gruvbox = {
url = "github:ellisonleao/gruvbox.nvim";
flake = false;
};
# Rust crates
crates-nvim = {
url = "github:Saecki/crates.nvim";

View File

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

View File

@ -3,4 +3,5 @@
"onedark"
"catppuccin"
"oxocarbon"
"gruvbox"
]

View File

@ -92,4 +92,40 @@
'';
styles = ["dark" "light"];
};
gruvbox = {
setup = {
style ? "dark",
transparent ? false,
}: ''
-- Gruvbox theme
require("gruvbox").setup({
terminal_colors = true, -- add neovim terminal colors
undercurl = true,
underline = true,
bold = true,
italic = {
strings = true,
emphasis = true,
comments = true,
operators = false,
folds = true,
},
strikethrough = true,
invert_selection = false,
invert_signs = false,
invert_tabline = false,
invert_intend_guides = false,
inverse = true,
contrast = "",
palette_overrides = {},
overrides = {},
dim_inactive = false,
transparent_mode = ${lib.boolToString transparent},
})
vim.o.background = "${style}"
vim.cmd("colorscheme gruvbox")
'';
styles = ["dark" "light"];
};
}