Skip to content

Commit b0a69ba

Browse files
Merge pull request #4 from timmypidashev/3-feature-request-customize-colors
v1.0.0
2 parents 2a5becc + bbf84e1 commit b0a69ba

File tree

13 files changed

+1455
-392
lines changed

13 files changed

+1455
-392
lines changed

.github/darkbox.png

-3.2 KB
Binary file not shown.

.github/screenshot.png

-547 KB
Binary file not shown.

.github/screenshot_classic.png

349 KB
Loading

.github/screenshot_dim.png

330 KB
Loading

.github/screenshot_retro.png

342 KB
Loading

.github/workflows/doc.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
name: docs
6+
7+
jobs:
8+
docs:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: panvimdoc
13+
uses: kdheepak/panvimdoc@main
14+
with:
15+
vimdoc: gruvbox.nvim
16+
version: "Neovim >= 0.8.0"
17+
demojify: true
18+
treesitter: true
19+
- name: Push changes
20+
uses: stefanzweifel/git-auto-commit-action@v4
21+
with:
22+
commit_message: "auto-generate vimdoc"
23+
commit_user_name: "github-actions[bot]"
24+
commit_user_email: "github-actions[bot]@users.noreply.github.com"
25+
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"

.github/workflows/test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
on: [push, pull_request]
3+
name: default
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
nvim-versions: ["stable", "nightly"]
11+
name: test
12+
steps:
13+
- name: checkout
14+
uses: actions/checkout@v3
15+
16+
- uses: rhysd/action-setup-vim@v1
17+
with:
18+
neovim: true
19+
version: ${{ matrix.nvim-versions }}
20+
21+
- name: run tests
22+
run: make test
23+
env:
24+
PLENARY_DIR: vendor/plenary.nvim

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
TESTS_INIT=tests/init.lua
2+
TESTS_DIR=tests/
3+
4+
.PHONY: test
5+
6+
test:
7+
@nvim \
8+
--headless \
9+
--noplugin \
10+
-u ${TESTS_INIT} \
11+
-c "PlenaryBustedDirectory ${TESTS_DIR} { minimal_init = '${TESTS_INIT}' }"

README.md

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ A pure-black refresh of the retro-groove aesthetic for modern displays. Darkbox
99
- Retro-groove inspired color palette with modern refinements
1010
- Built-in support for tree-sitter
1111

12+
## 📸 Screenshots
13+
14+
### Classic
15+
![Screenshot](.github/screenshot_classic.png)
16+
17+
### Retro
18+
![Screenshot](.github/screenshot_retro.png)
19+
20+
### Dim
21+
![Screenshot](.github/screenshot_dim.png)
22+
1223
## 🚀 Installation
1324

1425
### Using [lazy.nvim](https://github.com/folke/lazy.nvim)
@@ -25,9 +36,54 @@ return {
2536
}
2637
```
2738

28-
## 📸 Screenshot
39+
## ✏️ Configuration
40+
41+
Additional settings for darkbox are available:
42+
```lua
43+
-- Default options:
44+
require("darkbox").setup({
45+
terminal_colors = true, -- add neovim terminal colors
46+
undercurl = true,
47+
underline = true,
48+
bold = true,
49+
italic = {
50+
strings = true,
51+
emphasis = true,
52+
comments = true,
53+
operators = false,
54+
folds = true,
55+
},
56+
strikethrough = true,
57+
invert_selection = false,
58+
invert_signs = false,
59+
invert_tabline = false,
60+
invert_intend_guides = false,
61+
inverse = true, -- invert background for search, diffs, statuslines and errors
62+
contrast = "", -- can be "retro", "dim" or empty string for classic
63+
palette_overrides = {},
64+
overrides = {},
65+
dim_inactive = false,
66+
transparent_mode = false,
67+
})
68+
vim.cmd("colorscheme darkbox")
69+
```
2970

30-
![Screenshot](.github/screenshot.png)
71+
**VERY IMPORTANT**: Make sure to call setup() **BEFORE** calling the colorscheme command, to use your custom configs
72+
73+
## 🔧 Overrides
74+
75+
### Palette
76+
77+
You can specify your own palette colors. For example:
78+
79+
```lua
80+
require("darkbox").setup({
81+
palette_overrides = {
82+
base_red = "#991900",
83+
}
84+
})
85+
vim.cmd("colorscheme darkbox")
86+
```
3187

3288
## 🤝 Contributing
3389

0 commit comments

Comments
 (0)