Git Product home page Git Product logo

vim-colors-github's Introduction

vim-colors-github

A Vim colorscheme based on Github's syntax highlighting as of 2018.

I wasn't happy with endel/vim-github-colorscheme, as it was out of date.

It degrades gracefully in non-gui mode (ie ctermbg/ctermfg/256colors).

It supports the following plugins: airline, lightline, fzf, GitGutter, NERDTree, Startify, sneak, and :terminal.

Extra tuning has been done for the following languages: Vim script, Markdown, Pandoc Markdown (vim-pandoc-syntax) Diff, C, Rust, Go (fatih/vim-go), Haskell (neovimhaskell/haskell-vim), Ruby, Python, HTML, XML, TOML, YAML, Clojure, Typescript, (leafgarland/vim-typescript), JSX/TSX (MaxMEllon/vim-jsx-pretty),.

Install

Install with your favourite plugin manager. For vim-plug:

Plug 'cormacrelf/vim-colors-github'

Then set your colorscheme to 'github':

" in your .vimrc or init.vim
colorscheme github

" if you use airline / lightline
let g:airline_theme = "github"
let g:lightline = { 'colorscheme': 'github' }

Options

Place before the colorscheme github:

" use a slightly darker background, like GitHub inline code blocks
let g:github_colors_soft = 1

" use the dark theme
set background=dark

" more blocky diff markers in signcolumn (e.g. GitGutter)
let g:github_colors_block_diffmark = 0

:help github_colors.txt

How to toggle background and also refresh the Lightline theme?

There is a built-in background toggler that does this. Make a mapping for it like so:

call github_colors#togglebg_map('<f5>')

Screenshots

Dark

Dark

Dark UI

Dark Diff

Light

Light

Light UI

Light Diff

Soft

Soft

Soft UI

Soft Diff

License

Distributed under the same terms as Vim itself. See :help license.

vim-colors-github's People

Contributors

cormacrelf avatar ujihisa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vim-colors-github's Issues

Issue with CocFloating or CocErrorFloat

I don't know enough about highlight to indentify where the problem is, but when a coc.nvim error appears, the letters can't be distinguished:
error_notvisible

However, when I change colorscheme to default and change it back to github, they do work.
fixed

Steps to reproduce:

  1. Have colorscheme github on the vimrc file.
  2. Open a file and write a coc.nvim error. (text can't be read)
  3. Change colorscheme: :colorscheme default
  4. Change colorscheme again: :colorscheme github
  5. Text can be read again.

Again, I am not sure if the issue is on the Github colors or some coc.nvim configuration.

Dark mode: can't read non-focused buffer name

Great colour scheme!

I just have a minor issue.
On windows + GVIM I have two buffers open:
image

Below the active buffer, I can read the name of the other buffer.

Here are my settings:

let g:github_colors_soft = 1
let g:airline_theme='github'
colorscheme github
set background=dark

Color hard to read when editing git patch

In Ubuntu 18.04.02 LTS with gnome terminal:

  1. Edit a file part of a git repository.
  2. git add -p file
  3. select e to edit what is going to be added
  4. if a line starts by "-" to be removed, the text and the background show as red, and thus the text is not visible.

Curly underline support for coc

Great colorscheme and thank you for making it!

Just to ask it is possible to have support for curly underline in coc.nvim? Right now the curly underline are displayed as straight underline, with a character background of the color which was set for curly underline.

Dark Dimmed

Github released a new Dark Dimmed color scheme.

SignColumn doesn't render like LineNr

Summary

SignColum part is not rendering properly when the let g:ale_sign_column_always = 1 sets. I couldn't confirm the issue reproducible in another setup.

Reproduced on

  • Vimr: NVIM 0.3.4
  • Macvim: VIM - Vi IMproved 8.1 (2018 May 18, compiled Feb 18 2019 23:51:40)
    macOS version
    Included patches: 1-950

Expected behavior

  • SignColum has the same color scheme as LineNr

Actual

  • SignColum sets to grey

Screen Shot 2019-04-12 at 12 37 38 PM

Light mode is incompatible with vim-lsp-cxx-highlight

vim-lsp-cxx-highlight is a C++ highlight plugin based on LSP. It works properly for other light color schemes such as edge.

In dark mode, everything seems to be OK. In light mode, however, variable is displayed in white and it is hard to distinguish. Is it a bug of vim-colors-github?

Vim version: Vim 8.2 and Neovim-nightly

Screenshot(Vim which only installs vim-lsp-cxx-highlight(coc.nvim) and vim-colors-github):
Screenshot_20210112_144823

Clear permission statement related to GitHub Terms of Service

Hi,

I was reading https://docs.github.com/en/free-pro-team@latest/github/site-policy/github-terms-of-service#g-intellectual-property-notice, and noticed

You may not duplicate, copy, or reuse any portion of the HTML/CSS, Javascript, or visual design elements or concepts without express written permission from GitHub.

Maybe it'll be better to put the written permission from GitHub in your project README, so users are clear about licensing.

Treesitter support in Neovim

I've searched far and wide for light colorschemes with high contrast for plain text and harmonious colors. This colorscheme rules them all. None others can compare even after so many years of searching!

I humbly request to add Treesitter support with emphasis and strong. 🙏

Does not recognize `.exs` as valid file format

Hi! I love the theme!

I use Elixir and the .ex files work great. But it seems like the .exs (the test files) don't get recognized.

I'm not sure if this is a config here, or somewhere else in my vimrc. If not a problem here, could you please point me to another place to look? Thanks!

New Github style?

Hi there, very nice theme. Are there plans to update it to reflect Github's style as of 2020?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.