- Notifications
You must be signed in to change notification settings - Fork60
Srcery is a dark color scheme with clearly defined contrasting colors and a slightly earthy tone.
License
srcery-colors/srcery-vim
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Srcery is a color scheme with clearly defined contrasting colors and aslightly earthy tone.
Table of content
You don’t need to do anything for this colorscheme to work in gVim or MacVim.
To use Srcery in the terminal you need to change your terminal emulator’sso-called “ASCII” colors to the ones in the table below. There's a list ofterminal configurations in thesrcery-terminal repository.
Additionally Srcery uses somexterm 256colorsto pad out the color selection, no extra configuration needed.
Download or clone srcery's repository to a location of your choosing and set yourruntimepath
correctly, otherwise srcery will not work as it relies on theautoload
functionality.
You can also install with your favourite plugin manager.
Vim 8 has native support for loading plugins by usingpackages
. All you need to do to, is to clone this repository into~/.vim/pack/themes/opt
.
git clone https://github.com/srcery-colors/srcery-vim ~/.vim/pack/themes/opt/srcery-vim
And then set your.vimrc
accordingly.
packadd! srcery-vimcolorscheme srcery
The same works for Neovim, but you have to clone it into a path where Neovim canfind it.
git clone https://github.com/srcery-colors/srcery-vim $XDG_CONFIG_HOME/nvim/pack/themes/opt
calldein#add('srcery-colors/srcery-vim')
cd~/.vim/bundlegit clone https://github.com/srcery-colors/srcery-vim
Plug'srcery-colors/srcery-vim'
use {'srcery-colors/srcery-vim',as='srcery'}
:color srcery
If you like what you see and decide to make srcery your default colorscheme, add the relevant line to your.vimrc
:
colorscheme srcery
Srcery includes a few toggles due to discrepancies in the various setups possible.To change any of these you'd put something like this in your.vimrc
letg:srcery_italic=1
Make sure that you set these variables before assigningcolorscheme
.
You can customize each of Srcery's colors, to customize say the red color:
letg:srcery_red='#FF0000'
Inside a 256-color terminal emulator, additional colors are configurablevia setting the corresponding variable with the _cterm suffix, e.g.
letg:srcery_hard_black_cterm=232
Refer to thetable for a full list of color variables, hexes and more.
This will only work onset termguicolors
and in gVim, to override terminalcolors, do so in yourterminalconfiguration.
Enables bold text.
Default: 1
Enables italic text.
Default: gui 1, term 0
Enables underlined text.
Default: 1
Enables undercurled text.
Default: 1
Enables strikethrough text.
Default: 1
Enable or disable inverse highlighting (foreground becomes background,vice versa). This is used for visual selection, search highlights andsome other things.
Srcery will fall back to other methods of highlighting if this isdisabled.
Default: 1
Highlight search matches using inverse colors.
Default: 0
When enabled will highlight matching delimiters using inverse colors.(:DoMatchParen
)
Works best withRainbow parenthesis.
Default: 0
Dims lisp dialects delimiters to a fairly dark gray (xgray5 specifically).
Default: 0
Sets up alternate highlighting for colored underline/undercurl. Someenvironments are unable to color underline, so this setting will set either thebackground or foreground to whatever color the underline is supposed to be.
This comes in handy if colored underline doesn't work, or underline is disabledentirely.
Default: 'NONE'
Possible Values: 'fg', 'bg'
Italicize types if italic is enabled.
Default: 0
Let's you customize the background color. This var takes a list with twovalues, with a quoted HEX in the first position, and a terminal color index forthe second position. This lets you set both a 24-bit color, and a 8bit terminalcolor index.
You can specify'NONE'
as one of the values to make it transparent, as such['NONE', 'NONE']
would be the same as the previous optiong:srcery_bg_passthrough = 1
.
You can specify'DEFAULT'
as one of the values in order to use thatposition's default value.
Default:[g:srcery_black, 0]
If enabled, will set the terminal background in vim to hard black.Note that this currently only works in Vim, not Neovim.
Default: 1
Typeface used in screenshots isIosevka
Lightline colorscheme.To use it, include 'srcery' value in lightline configuration, like so:
letg:lightline= {\'colorscheme':'srcery',\}
Lualine colorscheme.It's the same as Lightline's. Enable it in your configuration:
require('lualine').setup { options = { theme = 'srcery', },}
Thanks toMindTooth, Srcery now includes anAirline theme.
These don't require any additional configuration.
- ale
- coc.nvim
- ctrlp.vim
- fzf.vim
- nerdtree
- nvim-cmp
- nvim-treesitter
- telescope-nvim
- vim-clap
- vim-gitgutter
- vim-indent-guides
- vim-sneak
- vim-startify
Plugin support is still a work in progress and more will come, if there isanything missing that you'd like to add please open an issue and let me know.
This project started as essentially a palette swap ofGruvbox and all credit goes to themaintainers of that fantastic color scheme. I wanted something a bit sharper, butI loved the syntax color choices of Gruvbox. I also tried to make the theme assimple to use as possible, which was inspired byFlattened. Other themes that influencedSrcery:
Ensure that 256 colors are enabled in vim by setting this optionbefore setting the colorscheme.
sett_Co=256
If you want to use GUI colors in terminal make sure that tmux passthrough 24-bit color codes. For example, if you useTermite add it to theterminal overrides setting:
set -ga terminal-overrides",xterm-termite:Tc"
For other terminals, replacexterm-termite
with the relevantterminal type. (stored in$TERM
).
Check outsrcery-emacs
About
Srcery is a dark color scheme with clearly defined contrasting colors and a slightly earthy tone.