Skip to content
/ edge Public
forked from sainnhe/edge

Clean & Elegant Color Scheme inspired by Atom One and Material

License

Notifications You must be signed in to change notification settings

manixx/edge

 
 

Repository files navigation

𝐃𝐚𝐫𝐤 𝐋𝐢𝐠𝐡𝐭
dark light

This color scheme is heavily inspired by Atom One and Material, I'm trying to combine my favorite parts of them together.

Installation

Via Plugin Manager

Take vim-plug for example:

Plug 'sainnhe/edge'

For better syntax highlighting support, please install sheerun/vim-polyglot.

Manually

  1. Clone this repository.
  2. Copy /path/to/edge/colors/edge.vim to ~/.vim/colors/edge.vim
  3. To install lightline theme, copy /path/to/edge/autoload/lightline/colorscheme/edge.vim to ~/.vim/autoload/lightline/colorscheme/edge.vim

Usage

Vim

Put this in your vimrc:

set termguicolors

" for dark version
set background=dark
colorscheme edge

" for light version
set background=light
colorscheme edge

If you want to apply this color scheme temporarily, run this command in vim(this may cause color broken):

:colorscheme edge

Lightline

To enable lightline color scheme, put this in your vimrc:

let g:lightline = {}
let g:lightline.colorscheme = 'edge'

" or this line
let g:lightline = {'colorscheme' : 'edge'}

To apply it without reloading:

:let g:lightline.colorscheme = 'edge'
:call lightline#init()
:call lightline#colorscheme()

Tmux Status Line

Check this gist.

Zsh

Terminal Emulators

More

FAQ

Q: It doesn't work as expected.

A:

  1. This color scheme is mainly designed for true colors, set termguicolors is required. Check output of vim --version, maybe your vim doesn't support termguicolors

  2. Maybe your terminal emulator doesn't support true colors, you can test it using this script

  3. If you are running vim in tmux, you need to override default true colors of tmux, as tmux cannot display true color properly: #1246 How to use true colors in vim under tmux?

  4. There are many highlight group links in syntax files while a color scheme may change them, enabling one color scheme based on another color scheme enabled is very likely to cause color broken. If there is any color broken, you can enable the color scheme in your vimrc instead of after vim startup.

Q: What's your status line configuration?

A: Check this gist.

Q: What's the font used here?

A: Fira Code Nerd Font.

Contribution

Check this gist for detailed instructions to hack this color scheme: hack-color-schemes.md

Inspiration

Atom One

Material

Thanks to

License

MIT && Anti-996

About

Clean & Elegant Color Scheme inspired by Atom One and Material

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vim Script 100.0%