Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/viniciusmuller/djanho
🍁 Convert VSCode themes to (Neo)Vim colorschemes
https://github.com/viniciusmuller/djanho
Last synced: 4 days ago
JSON representation
🍁 Convert VSCode themes to (Neo)Vim colorschemes
- Host: GitHub
- URL: https://github.com/viniciusmuller/djanho
- Owner: viniciusmuller
- License: mit
- Created: 2021-08-23T13:59:21.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-21T21:34:14.000Z (about 2 years ago)
- Last Synced: 2024-08-01T19:58:27.435Z (3 months ago)
- Language: Rust
- Homepage:
- Size: 656 KB
- Stars: 133
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Djanho is a prototype which tries to convert VSCode themes to (Neo)Vim
colorschemes.## Features
- Handling of VSCode RGBA colors
- Out of the box conversion
- Outputs to both Lua and Vimscript
- Tree-sitter support## TODO
- Support other plugins than tree-sitter## Demo
The colorschemes below were converted directly from VSCode's .json theme files.
Dracula | Solarized Dark | Gruvbox Dark
:-------------------------:|:-------------------------:|:-------------------------
![](./images/dracula_generated.png) | ![](./images/solarized_dark_generated.png) | ![](./images/gruvbox_dark_generated.png)## Building
```bash
cargo build --release
```## Usage
```bash
./target/release/djanho vscode-theme.json
```
To see all the available options, use
```bash
djanho --help
```## Notice
- Some VSCode themes have trailing commas in its jsons, and the current parser
does not support them. If you receive an runtime error due to these trailing
commas, please remove them using something such as
```bash
hson -j file.json > file.json
```## Contributing
Feel free to open an issue or a pull request in order to fix bugs, improve
existing highlights or support new plugins/vim features.