forked from scottmckendry/cyberdream.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(extras): Add docu for bat and delta (scottmckendry#107)
- Loading branch information
1 parent
68d7298
commit 659cc11
Showing
2 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
## Usage | ||
|
||
### Bat | ||
|
||
Create a bat config dir. | ||
|
||
```sh | ||
mkdir -p "$(bat --config-dir)/themes" | ||
``` | ||
|
||
Download the cyberdream `.tmTheme` files into that directory. | ||
|
||
Rebuild the bat themes cache. | ||
|
||
```sh | ||
bat cache --build | ||
``` | ||
|
||
Create or use an existing config file. | ||
|
||
```sh | ||
# Show existing config file location. | ||
bat --config-file | ||
# or generate a new one | ||
bat --generate-config-file | ||
``` | ||
|
||
Add the theme to the config. | ||
|
||
```conf | ||
--theme="cyberdream" | ||
``` | ||
|
||
See [Bat - Adding a new theme](https://github.com/sharkdp/bat?tab=readme-ov-file#adding-new-themes) | ||
or [Bat - Configuration file](https://github.com/sharkdp/bat?tab=readme-ov-file#configuration-file) | ||
|
||
### Delta | ||
|
||
Prerequisite [Bat](#bat) theme. | ||
|
||
Add the theme to your [delta configuration section](https://dandavison.github.io/delta/configuration.html) in your `~/.gitconfig`. | ||
|
||
```gitconfig | ||
[delta] | ||
features = cyberdream | ||
|
||
[delta "decorations"] | ||
syntax-theme = cyberdream | ||
``` | ||
|
||
See [delta](https://dandavison.github.io/delta/) |