Skip to content

Commit

Permalink
Merge pull request #195 from Donnerinoern/theme/gruvbox
Browse files Browse the repository at this point in the history
Theme: Added Gruvbox
  • Loading branch information
NotAShelf authored Jan 18, 2024
2 parents d2def2b + e8acabe commit 4ded86d
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/release-notes/rl-0.6.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 17 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 @@ -341,6 +341,11 @@
flake = false;
};

gruvbox = {
url = "github:ellisonleao/gruvbox.nvim";
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 @@ -43,6 +43,7 @@ with lib; let
"catppuccin"
"dracula"
"oxocarbon"
"gruvbox"
"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 @@ -3,4 +3,5 @@
"onedark"
"catppuccin"
"oxocarbon"
"gruvbox"
]
36 changes: 36 additions & 0 deletions modules/theme/supported_themes.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
};
}

0 comments on commit 4ded86d

Please sign in to comment.