Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Srcery is a dark color scheme with clearly defined contrasting colors and a slightly earthy tone.

License

NotificationsYou must be signed in to change notification settings

srcery-colors/srcery-vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Srcery is a color scheme with clearly defined contrasting colors and aslightly earthy tone.

Table of content

Requirements

GUI

You don’t need to do anything for this colorscheme to work in gVim or MacVim.

TUI

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.

IMGTERMCOLNRVARHEXRGBHSL
blackblack0g:srcery_black#1C1B1928, 27, 2540, 6%, 10%
redred1g:srcery_red#EF2F27239, 47, 392, 86%, 55%
greengreen2g:srcery_green#519F5081, 159, 80119, 33%, 47%
yellowyellow3g:srcery_yellow#FBB829251, 184, 4141, 96%, 57%
blueblue4g:srcery_blue#2C78BF44, 120, 191209, 63%, 46%
magentamagenta5g:srcery_magenta#E02C6D224, 44, 109338, 74%, 53%
cyancyan6g:srcery_cyan#0AAEB310, 174, 179182, 89%, 37%
whitewhite7g:srcery_white#BAA67F186, 166, 12740, 30%, 61%
brightblackbrightblack8g:srcery_bright_black#918175145, 129, 11726, 11%, 51%
brightredbrightred9g:srcery_bright_red#F75341247, 83, 656, 92%, 61%
brightgreenbrightgreen10g:srcery_bright_green#98BC37152, 188, 5576, 55%, 48%
brightyellowbrightyellow11g:srcery_bright_yellow#FED06E254, 208, 11041, 99%, 71%
brightbluebrightblue12g:srcery_bright_blue#68A8E4104, 168, 228209, 70%, 65%
brightmagentabrightmagenta13g:srcery_bright_magenta#FF5C8F255, 92, 143341, 100%, 68%
brightcyanbrightcyan14g:srcery_bright_cyan#2BE4D043, 228, 208174, 77%, 53%
brightwhitebrightwhite15g:srcery_bright_white#FCE8C3252, 232, 19539, 90%, 88%

Additionally Srcery uses somexterm 256colorsto pad out the color selection, no extra configuration needed.

IMGNAMENRVARHEXRGBHSL
orangeorange202g:srcery_orange,g:srcery_orange_cterm#FF5F00255, 95, 022, 100%, 50%
bright_orangebright_orange208g:srcery_bright_orange,g:srcery_bright_orange_cterm#FF8700255, 135, 032, 100%, 50%
hard_blackhard_black233g:srcery_hard_black,g:srcery_hard_black_cterm#12121218, 18, 180, 0%, 7%
xgray1xgray1235g:srcery_xgray1,g:srcery_xgray1_cterm#26262638, 38, 380, 0%, 15%
xgray2xgray2236g:srcery_xgray2,g:srcery_xgray2_cterm#30303048, 48, 480, 0%, 19%
xgray3xgray3237g:srcery_xgray3,g:srcery_xgray3_cterm#3A3A3A58, 58, 580, 0%, 23%
xgray4xgray4238g:srcery_xgray4,g:srcery_xgray4_cterm#44444468, 68, 680, 0%, 27%
xgray5xgray5239g:srcery_xgray5,g:srcery_xgray5_cterm#4E4E4E78, 78, 780, 0%, 31%
xgray6xgray6240g:srcery_xgray6,g:srcery_xgray6_cterm#58585888, 88, 880, 0%, 35%

Installation

Manually

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

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'}

Usage

: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

Configuration

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.

Colors

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.

Options

g:srcery_bold

Enables bold text.

Default: 1

g:srcery_italic

Enables italic text.

Default: gui 1, term 0

g:srcery_underline

Enables underlined text.

Default: 1

g:srcery_undercurl

Enables undercurled text.

Default: 1

g:srcery_strikethrough

Enables strikethrough text.

Default: 1

g:srcery_inverse

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

g:srcery_inverse_matches

Highlight search matches using inverse colors.

Default: 0

g:srcery_inverse_match_paren

When enabled will highlight matching delimiters using inverse colors.(:DoMatchParen)

Works best withRainbow parenthesis.

Default: 0

g:srcery_dim_lisp_paren

Dims lisp dialects delimiters to a fairly dark gray (xgray5 specifically).

Default: 0

g:srcery_guisp_fallback

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'

g:srcery_italic_types

Italicize types if italic is enabled.

Default: 0

g:srcery_bg

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]

g:srcery_hard_black_terminal_bg

If enabled, will set the terminal background in vim to hard black.Note that this currently only works in Vim, not Neovim.

Default: 1

Screenshots

viml, bashviml_bash

clojure, elisplisp

c, rustc_rust

python, jspy_js

git, terminalgit_term

Typeface used in screenshots isIosevka

Plugin support

Lightline

lightline

Lightline colorscheme.To use it, include 'srcery' value in lightline configuration, like so:

letg:lightline= {\'colorscheme':'srcery',\}

Lualine

Lualine colorscheme.It's the same as Lightline's. Enable it in your configuration:

require('lualine').setup {  options = {    theme = 'srcery',  },}

Airline

airline

Thanks toMindTooth, Srcery now includes anAirline theme.

Other

These don't require any additional configuration.

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.

Attribution

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:

Troubleshooting

Colors don't look right

Ensure that 256 colors are enabled in vim by setting this optionbefore setting the colorscheme.

sett_Co=256

24-bit color, tmux and Neovim

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).

SeeArch wikiand thisissue.

Extra

Emacs

Check outsrcery-emacs


[8]ページ先頭

©2009-2025 Movatter.jp