Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lourenci/github-colors
Yet another GitHub colorscheme
https://github.com/lourenci/github-colors
colorscheme github-colorscheme hacktoberfest neovim tree-sitter
Last synced: 3 months ago
JSON representation
Yet another GitHub colorscheme
- Host: GitHub
- URL: https://github.com/lourenci/github-colors
- Owner: lourenci
- License: mit
- Archived: true
- Created: 2021-05-21T20:30:21.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-22T23:32:33.000Z (about 1 year ago)
- Last Synced: 2024-09-21T16:31:10.904Z (3 months ago)
- Topics: colorscheme, github-colorscheme, hacktoberfest, neovim, tree-sitter
- Language: Vim Script
- Homepage:
- Size: 72.3 KB
- Stars: 95
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-neovim - lourenci/github-colors - GitHub colors leveraging Tree-sitter to get 100% accuracy. (Colorscheme / Tree-sitter Supported Colorscheme)
README
# 🐙 Yet another GitHub colorscheme
I've tried a lot of themes trying to reproduce the GitHub one, but all of them fall trying to reproduce them. This is my attempt.
Please, don't expect me to solve your issues. I don't make OSS for living. As I use this colorscheme in daily-basis, I'll try to keep it updated with the GitHub colors as soon as possible. Feel free to open a PR and get it merged.
## Why this one is different?
GitHub uses tree-sitter to parse the source code and to colorize them. This is the reason why it's so hard to reproduce its colors. With `nvim 0.5` we can do the same thing, theoretically.
## Features
- Light color
- Dim (soft dark) color
- tree-sitter syntax
- True color only## Setup
How we need to leverage tree-sitter so we can't support `vim` or `nvim 0.4`, though you can try it since we use the "tree-sitter <> vim" bindings highlights when is possible. I don't have any plans to try to port it for the mentioned ones.
```lua
use {
'nvim-treesitter/nvim-treesitter',
run = ':TSUpdate',
config = function()
require'nvim-treesitter.configs'.setup {
highlight = {
enable = true,
}
}
end,
}
use 'lourenci/github-colors'
``````vim
syntax on
set termguicolors
set background=light " or set background=dark
colorscheme github-colors
```## Examples
* Ruby - GitHub <> Colorscheme
* TypeScript - GitHub <> Colorscheme