├── .github └── pull_request_template.md ├── LICENSE.md ├── README.md ├── autoload ├── airline │ └── themes │ │ └── codedark.vim └── lightline │ └── colorscheme │ └── codedark.vim ├── base16 ├── schemes │ └── codedark │ │ └── codedark.yaml └── templates │ ├── putty │ └── putty │ │ └── base16-codedark.reg │ └── shell │ └── scripts │ └── base16-codedark.sh └── colors └── codedark.vim /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | Hello! Please do not forget to provide a screenshot of the visual changes that your pull request makes! Thank you! :) 2 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Tomáš Iser 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vim-code-dark 2 | `vim-code-dark` is a dark **color scheme for [Vim](http://www.vim.org/)** heavily inspired by the look of the Dark+ scheme of [Visual Studio Code](https://code.visualstudio.com/). While many of the colors are same, there are additional colors for specific usage or reserved for future use. The scheme also defines specific GUI colors (e.g. popup menu) and fully supports [`vim-airline`](https://github.com/vim-airline/vim-airline). 3 | 4 | **:exclamation: To install and enable this colorscheme, [read installation instructions](#installation).** 5 | 6 | *This colorscheme does also support 256 and 8/16 color terminals. See [installation instructions](#installation) step 3.* 7 | 8 | ## Screenshots 9 | 10 | ### gVim / modern terminals 11 | ![Ruby and NERDTree](https://cloud.githubusercontent.com/assets/10374559/23333137/b86efaa0-fb86-11e6-8c06-813f81c1f9bb.png) 12 | ![Editing HTML and CSS](https://cloud.githubusercontent.com/assets/10374559/23344709/459972a2-fc81-11e6-9b50-c432d998caef.png) 13 | 14 | *Code samples [1](http://sandbox.mc.edu/~bennet/ruby/code/), [2](https://tmtheme-editor.herokuapp.com/), [`nerdtree`](https://github.com/scrooloose/nerdtree)* 15 | 16 | ### Terminals with limited color support 17 | 18 | #### Fixed 256 colors 19 | ![Terminal on Debian with 256 colors](https://cloud.githubusercontent.com/assets/10374559/23342967/e61e28c6-fc63-11e6-9ccf-d6189b9e1b61.png) 20 | 21 | #### Fixed 8/16 colors 22 | ![Terminal on Debian with 16 colors](https://cloud.githubusercontent.com/assets/10374559/23341713/0e8dd778-fc4d-11e6-8430-b11f161305d7.png) 23 | 24 | ## Installation 25 | 26 | ### 1) Download 27 | 28 | Simply as any other Vim plugins: download manually or follow the standard procedure of your plugin manager: 29 | * [Vundle](https://github.com/gmarik/vundle) 30 | ```vim 31 | Plugin 'tomasiser/vim-code-dark' 32 | ``` 33 | * [vim-plug](https://github.com/junegunn/vim-plug) 34 | ```vim 35 | Plug 'tomasiser/vim-code-dark' 36 | ``` 37 | * [builtin package manager](https://vimhelp.org/repeat.txt.html#packages) 38 | ```bash 39 | # Regular Vim 40 | mkdir -p ~/.vim/pack/themes/start 41 | cd ~/.vim/pack/themes/start 42 | git clone https://github.com/tomasiser/vim-code-dark 43 | 44 | # Neovim 45 | mkdir -p ~/.local/share/nvim/site/pack/themes/start 46 | cd ~/.local/share/nvim/site/pack/themes/start 47 | git clone https://github.com/tomasiser/vim-code-dark 48 | ``` 49 | 50 | ### 2) Enable in `.vimrc` 51 | 52 | Add the following line to your `.vimrc`: 53 | 54 | ```vim 55 | colorscheme codedark 56 | ``` 57 | 58 | ### 3) Terminal support 59 | 60 | #### 3.1) If you use gVim / a modern terminal 61 | :+1: The colorscheme will work out of the box. No need to setup anything else! 62 | 63 | #### 3.2) If the colors seem to be wrong 64 | If your terminal supports 256 colors (see [this script](http://www.robmeerman.co.uk/unix/256colours) if you want to test your terminal), you **may need to set `t_Co` to 256** and [possibly also reset the `t_ut` value](http://vi.stackexchange.com/questions/238/tmux-is-changing-part-of-the-background-in-vim) in your `.vimrc` before setting the colorscheme: 65 | ```vim 66 | set t_Co=256 67 | set t_ut= 68 | colorscheme codedark 69 | ``` 70 | 71 | (Additionally, if you don't want to or cannot use `t_Co`, you can `let g:codedark_term256=1`.) 72 | 73 | #### 3.3) If your terminal only supports 8/16 colors 74 | 75 | :exclamation: Before following those steps, first try step 3.2) - maybe your terminal does support 256 colors! 76 | 77 | If your terminal does not support 256 colors, you may want to change your terminal colors: 78 | 79 | ##### 3.3.1) Some Unix terminals 80 | Clone [`base16-shell`](https://github.com/chriskempson/base16-shell/) into `~/.config/base16-shell`: 81 | 82 | ```bash 83 | git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shell 84 | ``` 85 | 86 | Then copy a script from this (`vim-code-dark`) repository (`base16/templates/shell/scripts/base16-codedark.sh`) into `~/.config/base16-shell/scripts`. 87 | 88 | Following the instructions from [`base16-shell`](https://github.com/chriskempson/base16-shell/), you should now modify your `~/.bashrc` or `~/.zshrc` (depending on your shell) and insert the following lines: 89 | 90 | ```bash 91 | BASE16_SHELL=$HOME/.config/base16-shell/ 92 | [ -n "$PS1" ] && [ -s $BASE16_SHELL/profile_helper.sh ] && eval "$($BASE16_SHELL/profile_helper.sh)" 93 | ``` 94 | 95 | Now start a new shell and type the following command: `base16_codedark`. 96 | 97 | You should now be able to use Vim with your new colorscheme. 98 | 99 | ##### 3.3.2) PuTTY 100 | PuTTY should actually support 256 colors, try following [steps on StackOverflow](http://superuser.com/questions/436910/emulate-256-colors-in-putty-terminal). If it does not work, run `base16/templates/putty/putty/base16-codedark.reg` to modify your registry, then run PuTTY and load `codedark` in the session list. This will modify your PuTTY terminal colors. 101 | 102 | ## CUSTOMIZATION 103 | 104 | **:exclamation: To enable any of the following customizations, put the specific lines before setting the colorscheme** 105 | ```vim 106 | " If you don't like many colors and prefer the conservative style of the standard Visual Studio 107 | let g:codedark_conservative=1 108 | " If you like the new dark modern colors (Needs feedback!) 109 | let g:codedark_modern=1 110 | " Activates italicized comments (make sure your terminal supports italics) 111 | let g:codedark_italics=1 112 | " Make the background transparent 113 | let g:codedark_transparent=1 114 | " If you have vim-airline, you can also enable the provided theme 115 | let g:airline_theme = 'codedark' 116 | 117 | colorscheme codedark 118 | ``` 119 | 120 | ## FAQ 121 | 122 | ### The background color in my terminal is wrong when there is no text! 123 | Try resetting the `t_ut` value in your `.vimrc` as [described here](http://vi.stackexchange.com/questions/238/tmux-is-changing-part-of-the-background-in-vim): 124 | ```vim 125 | set t_Co=256 126 | set t_ut= 127 | colorscheme codedark 128 | ``` 129 | 130 | ### Something is broken but I know how to fix it! 131 | Pull requests are welcome! Feel free to send one with an explanation! 132 | 133 | ### Why does file syntax not look exactly like in Visual Studio Code? 134 | Because Vim uses different syntax rules. This is just a colorscheme for vim, not a syntax definition. 135 | 136 | ### My favourite language has wrong / bad / awful colors! 137 | There are a lot of syntax definitions with different highlight groups. Feel free to send a pull request with additional highlight groups! 138 | 139 | ### What setup can I see on the first screenshots? 140 | Screenshots come from gVim on Windows with the following font options and [`vim-airline`](https://github.com/vim-airline/vim-airline) enabled. 141 | 142 | ```vim 143 | set enc=utf-8 144 | set guifont=Powerline_Consolas:h11 145 | set renderoptions=type:directx,gamma:1.5,contrast:0.5,geom:1,renmode:5,taamode:1,level:0.5 146 | ``` 147 | 148 | ## Color Palette 149 | 150 | ![Color Palette](https://cloud.githubusercontent.com/assets/10374559/23341312/1961f416-fc45-11e6-83ba-d7180c5fdd6d.png) 151 | -------------------------------------------------------------------------------- /autoload/airline/themes/codedark.vim: -------------------------------------------------------------------------------- 1 | " Vim Code Dark (airline theme) 2 | " https://github.com/tomasiser/vim-code-dark 3 | 4 | scriptencoding utf-8 5 | 6 | let g:airline#themes#codedark#palette = {} 7 | 8 | " Terminal colors (base16): 9 | let s:cterm00 = "00" 10 | let s:cterm03 = "08" 11 | let s:cterm05 = "07" 12 | let s:cterm07 = "15" 13 | let s:cterm08 = "01" 14 | let s:cterm0A = "03" 15 | let s:cterm0B = "02" 16 | let s:cterm0C = "06" 17 | let s:cterm0D = "04" 18 | let s:cterm0E = "05" 19 | if exists('base16colorspace') && base16colorspace == "256" 20 | let s:cterm01 = "18" 21 | let s:cterm02 = "19" 22 | let s:cterm04 = "20" 23 | let s:cterm06 = "21" 24 | let s:cterm09 = "16" 25 | let s:cterm0F = "17" 26 | else 27 | let s:cterm01 = "00" 28 | let s:cterm02 = "08" 29 | let s:cterm04 = "07" 30 | let s:cterm06 = "07" 31 | let s:cterm09 = "06" 32 | let s:cterm0F = "03" 33 | endif 34 | 35 | if &t_Co >= 256 36 | let g:codedark_term256=1 37 | elseif !exists("g:codedark_term256") 38 | let g:codedark_term256=0 39 | endif 40 | 41 | let s:cdFront = {'gui': '#FFFFFF', 'cterm': (g:codedark_term256 ? '231' : s:cterm07)} 42 | let s:cdFrontGray = {'gui': '#D4D4D4', 'cterm': (g:codedark_term256 ? '188' : s:cterm05)} 43 | let s:cdBack = {'gui': '#1E1E1E', 'cterm': (g:codedark_term256 ? '234' : s:cterm00)} 44 | let s:cdSelection = {'gui': '#264F78', 'cterm': (g:codedark_term256 ? '24' : s:cterm01)} 45 | 46 | let s:cdBlue = {'gui': '#0A7ACA', 'cterm': (g:codedark_term256 ? '32' : s:cterm0D)} 47 | let s:cdLightBlue = {'gui': '#5CB6F8', 'cterm': (g:codedark_term256 ? '75' : s:cterm0C)} 48 | let s:cdYellow = {'gui': '#FFAF00', 'cterm': (g:codedark_term256 ? '214' : s:cterm0A)} 49 | let s:cdRed = {'gui': '#F44747', 'cterm': (g:codedark_term256 ? '203' : s:cterm08)} 50 | 51 | let s:cdDarkDarkDark = {'gui': '#262626', 'cterm': (g:codedark_term256 ? '235' : s:cterm01)} 52 | let s:cdDarkDark = {'gui': '#303030', 'cterm': (g:codedark_term256 ? '236' : s:cterm02)} 53 | let s:cdDark = {'gui': '#3C3C3C', 'cterm': (g:codedark_term256 ? '237' : s:cterm03)} 54 | 55 | let s:Warning = [ s:cdRed.gui, s:cdDarkDark.gui, s:cdRed.cterm, s:cdDarkDark.cterm, 'none'] 56 | 57 | " Normal: 58 | 59 | let s:N1 = [ s:cdFront.gui, s:cdBlue.gui, s:cdFront.cterm, s:cdBlue.cterm, 'none' ] 60 | let s:N2 = [ s:cdFront.gui, s:cdDarkDark.gui, s:cdFront.cterm, s:cdDarkDark.cterm, 'none' ] 61 | let s:N3 = [ s:cdFront.gui, s:cdDarkDarkDark.gui, s:cdFront.cterm, s:cdDarkDarkDark.cterm, 'none' ] 62 | let s:NM = [ s:cdFront.gui, s:cdDarkDarkDark.gui, s:cdFront.cterm, s:cdDarkDarkDark.cterm, 'none'] 63 | 64 | let g:airline#themes#codedark#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) 65 | let g:airline#themes#codedark#palette.normal_modified = { 'airline_c': s:NM } 66 | let g:airline#themes#codedark#palette.normal.airline_warning = s:Warning 67 | let g:airline#themes#codedark#palette.normal_modified.airline_warning = s:Warning 68 | 69 | " Insert: 70 | 71 | let s:I1 = [ s:cdBack.gui, s:cdYellow.gui, s:cdBack.cterm, s:cdYellow.cterm, 'none' ] 72 | let s:I2 = [ s:cdFront.gui, s:cdDarkDark.gui, s:cdFront.cterm, s:cdDarkDark.cterm, 'none' ] 73 | let s:I3 = [ s:cdFront.gui, s:cdDarkDarkDark.gui, s:cdFront.cterm, s:cdDarkDarkDark.cterm, 'none' ] 74 | let s:IM = [ s:cdFront.gui, s:cdDarkDarkDark.gui, s:cdFront.cterm, s:cdDarkDarkDark.cterm, 'none'] 75 | 76 | let g:airline#themes#codedark#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) 77 | let g:airline#themes#codedark#palette.insert_modified = { 'airline_c': s:IM } 78 | let g:airline#themes#codedark#palette.insert.airline_warning = s:Warning 79 | let g:airline#themes#codedark#palette.insert_modified.airline_warning = s:Warning 80 | 81 | " Replace: 82 | 83 | let s:R1 = [ s:cdBack.gui, s:cdYellow.gui, s:cdBack.cterm, s:cdYellow.cterm, 'none' ] 84 | let s:R2 = [ s:cdFront.gui, s:cdDarkDark.gui, s:cdFront.cterm, s:cdDarkDark.cterm, 'none' ] 85 | let s:R3 = [ s:cdFront.gui, s:cdDarkDarkDark.gui, s:cdFront.cterm, s:cdDarkDarkDark.cterm, 'none' ] 86 | let s:RM = [ s:cdFront.gui, s:cdDarkDarkDark.gui, s:cdFront.cterm, s:cdDarkDarkDark.cterm, 'none'] 87 | 88 | let g:airline#themes#codedark#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3) 89 | let g:airline#themes#codedark#palette.replace_modified = { 'airline_c': s:RM } 90 | let g:airline#themes#codedark#palette.replace.airline_warning = s:Warning 91 | let g:airline#themes#codedark#palette.replace_modified.airline_warning = s:Warning 92 | 93 | " Visual: 94 | 95 | let s:V1 = [ s:cdLightBlue.gui, s:cdDark.gui, s:cdLightBlue.cterm, s:cdDark.cterm, 'none' ] 96 | let s:V2 = [ s:cdFront.gui, s:cdDarkDark.gui, s:cdFront.cterm, s:cdDarkDark.cterm, 'none' ] 97 | let s:V3 = [ s:cdFront.gui, s:cdDarkDarkDark.gui, s:cdFront.cterm, s:cdDarkDarkDark.cterm, 'none' ] 98 | let s:VM = [ s:cdFront.gui, s:cdDarkDarkDark.gui, s:cdFront.cterm, s:cdDarkDarkDark.cterm, 'none'] 99 | 100 | let g:airline#themes#codedark#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) 101 | let g:airline#themes#codedark#palette.visual_modified = { 'airline_c': s:VM } 102 | let g:airline#themes#codedark#palette.visual.airline_warning = s:Warning 103 | let g:airline#themes#codedark#palette.visual_modified.airline_warning = s:Warning 104 | 105 | " Inactive: 106 | 107 | let s:IA1 = [ s:cdFrontGray.gui, s:cdDark.gui, s:cdFrontGray.cterm, s:cdDark.cterm, 'none' ] 108 | let s:IA2 = [ s:cdFrontGray.gui, s:cdDarkDark.gui, s:cdFrontGray.cterm, s:cdDarkDark.cterm, 'none' ] 109 | let s:IA3 = [ s:cdFrontGray.gui, s:cdDarkDarkDark.gui, s:cdFrontGray.cterm, s:cdDarkDarkDark.cterm, 'none' ] 110 | let s:IAM = [ s:cdFrontGray.gui, s:cdDarkDarkDark.gui, s:cdFrontGray.cterm, s:cdDarkDarkDark.cterm, 'none' ] 111 | 112 | let g:airline#themes#codedark#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3) 113 | let g:airline#themes#codedark#palette.inactive_modified = { 'airline_c': s:IAM } 114 | 115 | " Red accent for readonly: 116 | 117 | let g:airline#themes#codedark#palette.accents = { 118 | \ 'red': [ s:cdRed.gui, '', s:cdRed.cterm, '' ] 119 | \ } 120 | 121 | -------------------------------------------------------------------------------- /autoload/lightline/colorscheme/codedark.vim: -------------------------------------------------------------------------------- 1 | " ============================================================================= 2 | " Filename: autoload/lightline/colorscheme/codedark.vim 3 | " Author: artanikin 4 | " License: MIT License 5 | " Last Change: 2019/12/05 12:26:00 6 | " ============================================================================= 7 | 8 | let s:term_red = 204 9 | let s:term_green = 114 10 | let s:term_yellow = 180 11 | let s:term_blue = 39 12 | let s:term_purple = 170 13 | let s:term_white = 145 14 | let s:term_black = 235 15 | let s:term_grey = 236 16 | 17 | let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}} 18 | 19 | let s:p.normal.left = [ [ '#262626', '#608B4E', s:term_black, s:term_green, 'bold' ], [ '#608B4E', '#262626', s:term_green, s:term_black ] ] 20 | let s:p.normal.right = [ [ '#262626', '#608B4E', s:term_black, s:term_green ], [ '#D4D4D4', '#3C3C3C', s:term_white, s:term_grey ], [ '#608B4E', '#262626', s:term_green, s:term_black ] ] 21 | let s:p.inactive.right = [ [ '#262626', '#569CD6', s:term_black, s:term_blue], [ '#D4D4D4', '#3C3C3C', s:term_white, s:term_grey ] ] 22 | let s:p.inactive.left = s:p.inactive.right[1:] 23 | " her 24 | let s:p.insert.left = [ [ '#262626', '#569CD6', s:term_black, s:term_blue, 'bold' ], [ '#569CD6', '#262626', s:term_blue, s:term_black ] ] 25 | let s:p.insert.right = [ [ '#262626', '#569CD6', s:term_black, s:term_blue ], [ '#D4D4D4', '#3C3C3C', s:term_white, s:term_grey ], [ '#569CD6', '#262626', s:term_blue, s:term_black ] ] 26 | let s:p.replace.left = [ [ '#262626', '#D16969', s:term_black, s:term_red, 'bold' ], [ '#D16969', '#262626', s:term_red, s:term_black ] ] 27 | let s:p.replace.right = [ [ '#262626', '#D16969', s:term_black, s:term_red, 'bold' ], s:p.normal.right[1], [ '#D16969', '#262626', s:term_red, s:term_black ] ] 28 | let s:p.visual.left = [ [ '#262626', '#C586C0', s:term_black, s:term_purple, 'bold' ], [ '#C586C0', '#262626', s:term_purple, s:term_black ] ] 29 | let s:p.visual.right = [ [ '#262626', '#C586C0', s:term_black, s:term_purple, 'bold' ], s:p.normal.right[1], [ '#C586C0', '#262626', s:term_purple, s:term_black ] ] 30 | let s:p.normal.middle = [ [ '#D4D4D4', '#262626', s:term_white, s:term_black ] ] 31 | let s:p.insert.middle = s:p.normal.middle 32 | let s:p.replace.middle = s:p.normal.middle 33 | let s:p.tabline.left = [ s:p.normal.left[1] ] 34 | let s:p.tabline.tabsel = [ s:p.normal.left[0] ] 35 | let s:p.tabline.middle = s:p.normal.middle 36 | let s:p.tabline.right = [ s:p.normal.left[1] ] 37 | let s:p.normal.error = [ [ '#262626', '#D16969', s:term_black, s:term_red ] ] 38 | let s:p.normal.warning = [ [ '#262626', '#D7BA7D', s:term_black, s:term_yellow ] ] 39 | 40 | let g:lightline#colorscheme#codedark#palette = lightline#colorscheme#fill(s:p) 41 | -------------------------------------------------------------------------------- /base16/schemes/codedark/codedark.yaml: -------------------------------------------------------------------------------- 1 | scheme: "codedark" 2 | author: "Tomas Iser (https://github.com/tomasiser)" 3 | base00: "1E1E1E" 4 | base01: "262626" 5 | base02: "303030" 6 | base03: "3C3C3C" 7 | base04: "808080" 8 | base05: "D4D4D4" 9 | base06: "E9E9E9" 10 | base07: "FFFFFF" 11 | base08: "D16969" 12 | base09: "B5CEA8" 13 | base0A: "D7BA7D" 14 | base0B: "608B4E" 15 | base0C: "9CDCFE" 16 | base0D: "569CD6" 17 | base0E: "C586C0" 18 | base0F: "CE9178" 19 | -------------------------------------------------------------------------------- /base16/templates/putty/putty/base16-codedark.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | ; Base16 codedark 4 | ; schema by Tomas Iser (https://github.com/tomasiser) 5 | [HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\codedark] 6 | 7 | ; Default Foreground 8 | "Colour0"="212,212,212" 9 | 10 | ; Default Bold Foreground -- equals to non-bold 11 | "Colour1"="212,212,212" 12 | 13 | ; Default Background 14 | "Colour2"="30,30,30" 15 | 16 | ; Default Bold Background -- equals to non-bold 17 | "Colour3"="30,30,30" 18 | 19 | ; Cursor Text -- equals to default background 20 | "Colour4"="30,30,30" 21 | 22 | ; Cursor Colour -- equals to default foreground 23 | "Colour5"="212,212,212" 24 | 25 | ; ANSI Black 26 | "Colour6"="30,30,30" 27 | 28 | ; ANSI Black Bold 29 | "Colour7"="60,60,60" 30 | 31 | ; ANSI Red 32 | "Colour8"="209,105,105" 33 | 34 | ; ANSI Red Bold 35 | "Colour9"="181,206,168" 36 | 37 | ; ANSI Green 38 | "Colour10"="96,139,78" 39 | 40 | ; ANSI Green Bold 41 | "Colour11"="38,38,38" 42 | 43 | ; ANSI Yellow 44 | "Colour12"="215,186,125" 45 | 46 | ; ANSI Yellow Bold 47 | "Colour13"="48,48,48" 48 | 49 | ; ANSI Blue 50 | "Colour14"="86,156,214" 51 | 52 | ; ANSI Blue Bold 53 | "Colour15"="128,128,128" 54 | 55 | ; ANSI Magenta 56 | "Colour16"="197,134,192" 57 | 58 | ; ANSI Magenta Bold 59 | "Colour17"="233,233,233" 60 | 61 | ; ANSI Cyan 62 | "Colour18"="156,220,254" 63 | 64 | ; ANSI Cyan Bold 65 | "Colour19"="206,145,120" 66 | 67 | ; ANSI White 68 | "Colour20"="212,212,212" 69 | 70 | ; ANSI White Bold 71 | "Colour21"="255,255,255" 72 | 73 | -------------------------------------------------------------------------------- /base16/templates/shell/scripts/base16-codedark.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # base16-shell (https://github.com/chriskempson/base16-shell) 3 | # Base16 Shell template by Chris Kempson (http://chriskempson.com) 4 | # codedark scheme by Tomas Iser (https://github.com/tomasiser) 5 | 6 | # This script doesn't support linux console (use 'vconsole' template instead) 7 | if [ "${TERM%%-*}" = 'linux' ]; then 8 | return 2>/dev/null || exit 0 9 | fi 10 | 11 | color00="1E/1E/1E" # Base 00 - Black 12 | color01="D1/69/69" # Base 08 - Red 13 | color02="60/8B/4E" # Base 0B - Green 14 | color03="D7/BA/7D" # Base 0A - Yellow 15 | color04="56/9C/D6" # Base 0D - Blue 16 | color05="C5/86/C0" # Base 0E - Magenta 17 | color06="9C/DC/FE" # Base 0C - Cyan 18 | color07="D4/D4/D4" # Base 05 - White 19 | color08="3C/3C/3C" # Base 03 - Bright Black 20 | color09=$color01 # Base 08 - Bright Red 21 | color10=$color02 # Base 0B - Bright Green 22 | color11=$color03 # Base 0A - Bright Yellow 23 | color12=$color04 # Base 0D - Bright Blue 24 | color13=$color05 # Base 0E - Bright Magenta 25 | color14=$color06 # Base 0C - Bright Cyan 26 | color15="FF/FF/FF" # Base 07 - Bright White 27 | color16="B5/CE/A8" # Base 09 28 | color17="CE/91/78" # Base 0F 29 | color18="26/26/26" # Base 01 30 | color19="30/30/30" # Base 02 31 | color20="80/80/80" # Base 04 32 | color21="E9/E9/E9" # Base 06 33 | color_foreground="D4/D4/D4" # Base 05 34 | color_background="1E/1E/1E" # Base 00 35 | color_cursor="D4/D4/D4" # Base 05 36 | 37 | if [ -n "$TMUX" ]; then 38 | # Tell tmux to pass the escape sequences through 39 | # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) 40 | printf_template='\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' 41 | printf_template_var='\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' 42 | printf_template_custom='\033Ptmux;\033\033]%s%s\033\033\\\033\\' 43 | elif [ "${TERM%%-*}" = "screen" ]; then 44 | # GNU screen (screen, screen-256color, screen-256color-bce) 45 | printf_template='\033P\033]4;%d;rgb:%s\033\\' 46 | printf_template_var='\033P\033]%d;rgb:%s\033\\' 47 | printf_template_custom='\033P\033]%s%s\033\\' 48 | else 49 | printf_template='\033]4;%d;rgb:%s\033\\' 50 | printf_template_var='\033]%d;rgb:%s\033\\' 51 | printf_template_custom='\033]%s%s\033\\' 52 | fi 53 | 54 | # 16 color space 55 | printf $printf_template 0 $color00 56 | printf $printf_template 1 $color01 57 | printf $printf_template 2 $color02 58 | printf $printf_template 3 $color03 59 | printf $printf_template 4 $color04 60 | printf $printf_template 5 $color05 61 | printf $printf_template 6 $color06 62 | printf $printf_template 7 $color07 63 | printf $printf_template 8 $color08 64 | printf $printf_template 9 $color09 65 | printf $printf_template 10 $color10 66 | printf $printf_template 11 $color11 67 | printf $printf_template 12 $color12 68 | printf $printf_template 13 $color13 69 | printf $printf_template 14 $color14 70 | printf $printf_template 15 $color15 71 | 72 | # 256 color space 73 | printf $printf_template 16 $color16 74 | printf $printf_template 17 $color17 75 | printf $printf_template 18 $color18 76 | printf $printf_template 19 $color19 77 | printf $printf_template 20 $color20 78 | printf $printf_template 21 $color21 79 | 80 | # foreground / background / cursor color 81 | if [ -n "$ITERM_SESSION_ID" ]; then 82 | # iTerm2 proprietary escape codes 83 | printf $printf_template_custom Pg D4D4D4 # forground 84 | printf $printf_template_custom Ph 1E1E1E # background 85 | printf $printf_template_custom Pi D4D4D4 # bold color 86 | printf $printf_template_custom Pj 303030 # selection color 87 | printf $printf_template_custom Pk D4D4D4 # selected text color 88 | printf $printf_template_custom Pl D4D4D4 # cursor 89 | printf $printf_template_custom Pm 1E1E1E # cursor text 90 | else 91 | printf $printf_template_var 10 $color_foreground 92 | printf $printf_template_var 11 $color_background 93 | printf $printf_template_custom 12 ";7" # cursor (reverse video) 94 | fi 95 | 96 | # clean up 97 | unset printf_template 98 | unset printf_template_var 99 | unset color00 100 | unset color01 101 | unset color02 102 | unset color03 103 | unset color04 104 | unset color05 105 | unset color06 106 | unset color07 107 | unset color08 108 | unset color09 109 | unset color10 110 | unset color11 111 | unset color12 112 | unset color13 113 | unset color14 114 | unset color15 115 | unset color16 116 | unset color17 117 | unset color18 118 | unset color19 119 | unset color20 120 | unset color21 121 | unset color_foreground 122 | unset color_background 123 | unset color_cursor 124 | -------------------------------------------------------------------------------- /colors/codedark.vim: -------------------------------------------------------------------------------- 1 | " Vim Code Dark (color scheme) 2 | " https://github.com/tomasiser/vim-code-dark 3 | 4 | scriptencoding utf-8 5 | 6 | set background=dark 7 | hi clear 8 | if exists("syntax_on") 9 | syntax reset 10 | endif 11 | let g:colors_name="codedark" 12 | 13 | " Highlighting function (inspiration from https://github.com/chriskempson/base16-vim) 14 | if &t_Co >= 256 15 | let g:codedark_term256=1 16 | elseif !exists("g:codedark_term256") 17 | let g:codedark_term256=0 18 | endif 19 | fun! hi(group, fg, bg, attr, sp) 20 | if !empty(a:fg) 21 | exec "hi " . a:group . " guifg=" . a:fg.gui . " ctermfg=" . (g:codedark_term256 ? a:fg.cterm256 : a:fg.cterm) 22 | endif 23 | if !empty(a:bg) 24 | exec "hi " . a:group . " guibg=" . a:bg.gui . " ctermbg=" . (g:codedark_term256 ? a:bg.cterm256 : a:bg.cterm) 25 | endif 26 | if a:attr != "" 27 | exec "hi " . a:group . " gui=" . a:attr . " cterm=" . a:attr 28 | endif 29 | if !empty(a:sp) 30 | exec "hi " . a:group . " guisp=" . a:sp.gui 31 | endif 32 | endfun 33 | " Choose old or new name for Treesitter groups depending on Neovim version 34 | fun! hiTS(g_new, g_old, fg, bg, attr, sp) 35 | call hi(has("nvim-0.8.0") ? a:g_new : a:g_old, a:fg, a:bg, a:attr, a:sp) 36 | endfun 37 | 38 | fun! hiTSlink(g_new, g_old, link) 39 | exec "hi! link " . (has("nvim-0.8.0") ? a:g_new : a:g_old) . " " . a:link 40 | endfun 41 | 42 | " ------------------ 43 | " Color definitions: 44 | " ------------------ 45 | 46 | " Terminal colors (base16): 47 | let s:cterm00 = "00" 48 | let s:cterm03 = "08" 49 | let s:cterm05 = "07" 50 | let s:cterm07 = "15" 51 | let s:cterm08 = "01" 52 | let s:cterm0A = "03" 53 | let s:cterm0B = "02" 54 | let s:cterm0C = "06" 55 | let s:cterm0D = "04" 56 | let s:cterm0E = "05" 57 | if exists('base16colorspace') && base16colorspace == "256" 58 | let s:cterm01 = "18" 59 | let s:cterm02 = "19" 60 | let s:cterm04 = "20" 61 | let s:cterm06 = "21" 62 | let s:cterm09 = "16" 63 | let s:cterm0F = "17" 64 | else 65 | let s:cterm01 = "00" 66 | let s:cterm02 = "08" 67 | let s:cterm04 = "07" 68 | let s:cterm06 = "07" 69 | let s:cterm09 = "06" 70 | let s:cterm0F = "03" 71 | endif 72 | 73 | " General appearance colors: 74 | " (some of them may be unused) 75 | 76 | " Transparent background 77 | if !exists("g:codedark_transparent") 78 | let g:codedark_transparent=0 79 | endif 80 | 81 | if !exists("g:codedark_modern") 82 | let g:codedark_modern=0 83 | endif 84 | 85 | let s:cdNone = {'gui': 'NONE', 'cterm': 'NONE', 'cterm256': 'NONE'} 86 | let s:cdFront = {'gui': '#D4D4D4', 'cterm': s:cterm05, 'cterm256': '188'} 87 | let s:cdBack = {'gui': '#1E1E1E', 'cterm': s:cterm00, 'cterm256': '234'} 88 | if g:codedark_modern | let s:cdBack = {'gui': '#1f1f1f', 'cterm': 'NONE', 'cterm256': '234'} | endif 89 | if g:codedark_transparent | let s:cdBack = {'gui': 'NONE', 'cterm': 'NONE', 'cterm256': 'NONE'} | endif 90 | 91 | let s:cdTabCurrent = {'gui': '#1E1E1E', 'cterm': s:cterm00, 'cterm256': '234'} 92 | if g:codedark_modern | let s:cdTabCurrent = {'gui': '#1f1f1f', 'cterm': s:cterm00, 'cterm256': '234'} | endif 93 | let s:cdTabOther = {'gui': '#2D2D2D', 'cterm': s:cterm01, 'cterm256': '236'} 94 | if g:codedark_modern | let s:cdTabOther = {'gui': '#181818', 'cterm': s:cterm01, 'cterm256': '236'} | endif 95 | let s:cdTabOutside = {'gui': '#252526', 'cterm': s:cterm01, 'cterm256': '235'} 96 | if g:codedark_modern | let s:cdTabOutside = {'gui': '#181818', 'cterm': s:cterm01, 'cterm256': '236'} | endif 97 | 98 | let s:cdLeftDark = {'gui': '#252526', 'cterm': s:cterm01, 'cterm256': '235'} 99 | let s:cdLeftMid = {'gui': '#373737', 'cterm': s:cterm03, 'cterm256': '237'} 100 | if g:codedark_modern | let s:cdLeftMid = {'gui': '#181818', 'cterm': 'NONE', 'cterm256': '237'} | endif 101 | let s:cdLeftLight = {'gui': '#3F3F46', 'cterm': s:cterm03, 'cterm256': '238'} 102 | 103 | let s:cdPopupFront = {'gui': '#BBBBBB', 'cterm': s:cterm06, 'cterm256': '250'} 104 | let s:cdPopupBack = {'gui': '#2D2D30', 'cterm': s:cterm01, 'cterm256': '236'} 105 | let s:cdPopupHighlightBlue = {'gui': '#073655', 'cterm': s:cterm0D, 'cterm256': '24'} 106 | let s:cdPopupHighlightGray = {'gui': '#3D3D40', 'cterm': s:cterm03, 'cterm256': '237'} 107 | 108 | let s:cdSplitLight = {'gui': '#898989', 'cterm': s:cterm04, 'cterm256': '245'} 109 | let s:cdSplitDark = {'gui': '#444444', 'cterm': s:cterm03, 'cterm256': '238'} 110 | let s:cdSplitThumb = {'gui': '#424242', 'cterm': s:cterm04, 'cterm256': '238'} 111 | 112 | let s:cdCursorDarkDark = {'gui': '#222222', 'cterm': s:cterm01, 'cterm256': '235'} 113 | let s:cdCursorDark = {'gui': '#51504F', 'cterm': s:cterm03, 'cterm256': '239'} 114 | let s:cdCursorLight = {'gui': '#AEAFAD', 'cterm': s:cterm04, 'cterm256': '145'} 115 | let s:cdSelection = {'gui': '#264F78', 'cterm': s:cterm03, 'cterm256': '24'} 116 | let s:cdLineNumber = {'gui': '#5A5A5A', 'cterm': s:cterm04, 'cterm256': '240'} 117 | 118 | let s:cdDiffRedDark = {'gui': '#4B1818', 'cterm': s:cterm08, 'cterm256': '52'} 119 | if g:codedark_modern | let s:cdDiffRedDark = {'gui': '#da3633', 'cterm': 'NONE', 'cterm256': '52'} | endif 120 | let s:cdDiffRedLight = {'gui': '#6F1313', 'cterm': s:cterm08, 'cterm256': '52'} 121 | let s:cdDiffRedLightLight = {'gui': '#FB0101', 'cterm': s:cterm08, 'cterm256': '09'} 122 | let s:cdDiffGreenDark = {'gui': '#373D29', 'cterm': s:cterm0B, 'cterm256': '237'} 123 | if g:codedark_modern | let s:cdDiffGreenDark = {'gui': '#238636', 'cterm': 'NONE', 'cterm256': '237'} | endif 124 | let s:cdDiffGreenLight = {'gui': '#4B5632', 'cterm': s:cterm09, 'cterm256': '58'} 125 | let s:cdDiffBlueLight = {'gui': '#87d7ff', 'cterm': s:cterm0C, 'cterm256': '117'} 126 | let s:cdDiffBlue = {'gui': '#005f87', 'cterm': s:cterm0D, 'cterm256': '24'} 127 | 128 | let s:cdSearchCurrent = {'gui': '#4B5632', 'cterm': s:cterm09, 'cterm256': '58'} 129 | if g:codedark_modern | let s:cdSearchCurrent = {'gui': '#9e6a03', 'cterm': s:cterm09, 'cterm256': '58'} | endif 130 | let s:cdSearch = {'gui': '#773800', 'cterm': s:cterm03, 'cterm256': '94'} 131 | 132 | " Syntax colors: 133 | 134 | if !exists("g:codedark_conservative") 135 | let g:codedark_conservative=0 136 | endif 137 | 138 | " Italicized comments 139 | if !exists("g:codedark_italics") 140 | let g:codedark_italics=0 141 | endif 142 | 143 | let s:cdGray = {'gui': '#808080', 'cterm': s:cterm04, 'cterm256': '08'} 144 | let s:cdViolet = {'gui': '#646695', 'cterm': s:cterm04, 'cterm256': '60'} 145 | let s:cdBlue = {'gui': '#569CD6', 'cterm': s:cterm0D, 'cterm256': '75'} 146 | let s:cdDarkBlue = {'gui': '#223E55', 'cterm': s:cterm0D, 'cterm256': '73'} 147 | let s:cdLightBlue = {'gui': '#9CDCFE', 'cterm': s:cterm0C, 'cterm256': '117'} 148 | if g:codedark_conservative | let s:cdLightBlue = s:cdFront | endif 149 | let s:cdGreen = {'gui': '#6A9955', 'cterm': s:cterm0B, 'cterm256': '65'} 150 | let s:cdBlueGreen = {'gui': '#4EC9B0', 'cterm': s:cterm0F, 'cterm256': '43'} 151 | let s:cdLightGreen = {'gui': '#B5CEA8', 'cterm': s:cterm09, 'cterm256': '151'} 152 | let s:cdRed = {'gui': '#F44747', 'cterm': s:cterm08, 'cterm256': '203'} 153 | if g:codedark_modern | let s:cdRed = {'gui': '#f85149', 'cterm': s:cterm08, 'cterm256': '203'} | endif 154 | let s:cdOrange = {'gui': '#CE9178', 'cterm': s:cterm0F, 'cterm256': '173'} 155 | let s:cdLightRed = {'gui': '#D16969', 'cterm': s:cterm08, 'cterm256': '167'} 156 | if g:codedark_conservative | let s:cdLightRed = s:cdOrange | endif 157 | let s:cdYellowOrange = {'gui': '#D7BA7D', 'cterm': s:cterm0A, 'cterm256': '179'} 158 | let s:cdYellow = {'gui': '#DCDCAA', 'cterm': s:cterm0A, 'cterm256': '187'} 159 | if g:codedark_conservative | let s:cdYellow = s:cdFront | endif 160 | let s:cdPink = {'gui': '#C586C0', 'cterm': s:cterm0E, 'cterm256': '176'} 161 | if g:codedark_conservative | let s:cdPink = s:cdBlue | endif 162 | let s:cdSilver = {'gui': '#C0C0C0', 'cterm': s:cterm05, 'cterm256': '7'} 163 | 164 | " UI (built-in) 165 | " hi(GROUP, FOREGROUND, BACKGROUND, ATTRIBUTE, SPECIAL) 166 | call hi('Normal', s:cdFront, s:cdBack, 'none', {}) 167 | call hi('ColorColumn', {}, s:cdCursorDarkDark, 'none', {}) 168 | call hi('Cursor', s:cdCursorDark, s:cdCursorLight, 'none', {}) 169 | call hi('CursorLine', {}, s:cdCursorDarkDark, 'none', {}) 170 | hi! link CursorColumn CursorLine 171 | call hi('Directory', s:cdBlue, s:cdNone, 'none', {}) 172 | call hi('DiffAdd', s:cdFront, s:cdDiffGreenLight, 'none', {}) 173 | call hi('DiffChange', s:cdFront, s:cdDiffBlue, 'none', {}) 174 | call hi('DiffDelete', s:cdFront, s:cdDiffRedLight, 'none', {}) 175 | call hi('DiffText', s:cdBack, s:cdDiffBlueLight, 'none', {}) 176 | call hi('EndOfBuffer', s:cdLineNumber, s:cdBack, 'none', {}) 177 | call hi('ErrorMsg', s:cdRed, s:cdBack, 'none', {}) 178 | call hi('VertSplit', s:cdSplitDark, s:cdBack, 'none', {}) 179 | call hi('Folded', s:cdLeftLight, s:cdLeftDark, 'underline', {}) 180 | call hi('FoldColumn', s:cdLineNumber, s:cdBack, 'none', {}) 181 | call hi('SignColumn', {}, s:cdBack, 'none', {}) 182 | call hi('IncSearch', s:cdNone, s:cdSearchCurrent, 'none', {}) 183 | call hi('LineNr', s:cdLineNumber, s:cdBack, 'none', {}) 184 | call hi('CursorLineNr', s:cdPopupFront, s:cdBack, 'none', {}) 185 | call hi('MatchParen', s:cdNone, s:cdCursorDark, 'none', {}) 186 | call hi('ModeMsg', s:cdFront, s:cdLeftDark, 'none', {}) 187 | hi! link MoreMsg ModeMsg 188 | call hi('NonText', s:cdLineNumber, s:cdNone, 'none', {}) 189 | call hi('Pmenu', s:cdPopupFront, s:cdPopupBack, 'none', {}) 190 | call hi('PmenuSel', s:cdPopupFront, s:cdPopupHighlightBlue, 'none', {}) 191 | call hi('PmenuSbar', {}, s:cdPopupHighlightGray, 'none', {}) 192 | call hi('PmenuThumb', {}, s:cdPopupFront, 'none', {}) 193 | call hi('Question', s:cdBlue, s:cdBack, 'none', {}) 194 | call hi('Search', s:cdNone, s:cdSearch, 'none', {}) 195 | call hi('SpecialKey', s:cdLineNumber, s:cdNone, 'none', {}) 196 | call hi('StatusLine', s:cdFront, s:cdLeftMid, 'none', {}) 197 | call hi('StatusLineNC', s:cdFront, s:cdLeftDark, 'none', {}) 198 | call hi('TabLine', s:cdFront, s:cdTabOther, 'none', {}) 199 | call hi('TabLineFill', s:cdFront, s:cdTabOutside, 'none', {}) 200 | call hi('TabLineSel', s:cdFront, s:cdTabCurrent, 'none', {}) 201 | call hi('Title', s:cdNone, s:cdNone, 'bold', {}) 202 | call hi('Visual', s:cdNone, s:cdSelection, 'none', {}) 203 | hi! link VisualNOS Visual 204 | call hi('WarningMsg', s:cdOrange, s:cdBack, 'none', {}) 205 | call hi('WildMenu', s:cdNone, s:cdSelection, 'none', {}) 206 | call hi('netrwMarkFile', s:cdFront, s:cdSelection, 'none', {}) 207 | 208 | " Legacy groups for official git.vim and diff.vim syntax 209 | hi! link diffAdded DiffAdd 210 | hi! link diffChanged DiffChange 211 | hi! link diffRemoved DiffDelete 212 | 213 | if g:codedark_italics | call hi('Comment', s:cdGreen, {}, 'italic', {}) | else | call hi('Comment', s:cdGreen, {}, 'none', {}) | endif 214 | 215 | " SYNTAX HIGHLIGHT (built-in) 216 | call hi('Constant', s:cdBlue, {}, 'none', {}) 217 | call hi('String', s:cdOrange, {}, 'none', {}) 218 | call hi('Character', s:cdOrange, {}, 'none', {}) 219 | call hi('Number', s:cdLightGreen, {}, 'none', {}) 220 | call hi('Boolean', s:cdBlue, {}, 'none', {}) 221 | hi! link Float Number 222 | call hi('Identifier', s:cdLightBlue, {}, 'none', {}) 223 | call hi('Function', s:cdYellow, {}, 'none', {}) 224 | call hi('Statement', s:cdPink, {}, 'none', {}) 225 | call hi('Conditional', s:cdPink, {}, 'none', {}) 226 | call hi('Repeat', s:cdPink, {}, 'none', {}) 227 | call hi('Label', s:cdPink, {}, 'none', {}) 228 | call hi('Operator', s:cdFront, {}, 'none', {}) 229 | call hi('Keyword', s:cdPink, {}, 'none', {}) 230 | call hi('Exception', s:cdPink, {}, 'none', {}) 231 | call hi('PreProc', s:cdPink, {}, 'none', {}) 232 | call hi('Include', s:cdPink, {}, 'none', {}) 233 | call hi('Define', s:cdPink, {}, 'none', {}) 234 | call hi('Macro', s:cdPink, {}, 'none', {}) 235 | call hi('PreCondit', s:cdPink, {}, 'none', {}) 236 | call hi('Type', s:cdBlue, {}, 'none', {}) 237 | call hi('StorageClass', s:cdBlue, {}, 'none', {}) 238 | call hi('Structure', s:cdBlue, {}, 'none', {}) 239 | call hi('Typedef', s:cdBlue, {}, 'none', {}) 240 | call hi('Special', s:cdYellowOrange, {}, 'none', {}) 241 | call hi('SpecialChar', s:cdFront, {}, 'none', {}) 242 | call hi('Tag', s:cdFront, {}, 'none', {}) 243 | call hi('Delimiter', s:cdFront, {}, 'none', {}) 244 | if g:codedark_italics | call hi('SpecialComment', s:cdGreen, {}, 'italic', {}) | else | call hi('SpecialComment', s:cdGreen, {}, 'none', {}) | endif 245 | call hi('Debug', s:cdFront, {}, 'none', {}) 246 | call hi('Underlined', s:cdNone, {}, 'underline', {}) 247 | call hi("Conceal", s:cdFront, s:cdBack, 'none', {}) 248 | call hi('Ignore', s:cdBack, {}, 'none', {}) 249 | call hi('Error', s:cdRed, s:cdBack, 'undercurl', s:cdRed) 250 | call hi('Todo', s:cdNone, s:cdLeftMid, 'none', {}) 251 | call hi('SpellBad', s:cdRed, s:cdBack, 'undercurl', s:cdRed) 252 | call hi('SpellCap', s:cdRed, s:cdBack, 'undercurl', s:cdRed) 253 | call hi('SpellRare', s:cdRed, s:cdBack, 'undercurl', s:cdRed) 254 | call hi('SpellLocal', s:cdRed, s:cdBack, 'undercurl', s:cdRed) 255 | 256 | " NEOVIM 257 | " Make neovim specific groups load only on Neovim 258 | if has("nvim") 259 | " nvim-treesitter/nvim-treesitter (github) 260 | call hiTSlink('@error', 'TSError', 'ErrorMsg') 261 | call hiTSlink('@punctuation.delimiter', 'TSPunctDelimiter', 'Delimiter') 262 | call hiTSlink('@punctuation.bracket', 'TSPunctBracket', 'Delimiter') 263 | call hiTSlink('@punctuation.special', 'TSPunctSpecial', 'Delimiter') 264 | " Constant 265 | call hiTS('@constant', 'TSConstant', s:cdYellow, {}, 'none', {}) 266 | call hiTSlink('@constant.builtin', 'TSConstBuiltin', 'Constant') 267 | call hiTS('@constant.macro', 'TSConstMacro', s:cdBlueGreen, {}, 'none', {}) 268 | call hiTSlink('@string', 'TSString', 'String') 269 | call hiTSlink('@string.regex', 'TSStringRegex', 'String') 270 | call hiTS('@string.escape', 'TSStringEscape', s:cdYellowOrange, {}, 'none', {}) 271 | call hiTSlink('@character', 'TSCharacter', 'Character') 272 | call hiTSlink('@number', 'TSNumber', 'Number') 273 | call hiTS('@boolean', 'TSBoolean', s:cdBlue, {}, 'none', {}) 274 | call hiTSlink('@float', 'TSFloat', 'Float') 275 | call hiTS('@annotation', 'TSAnnotation', s:cdYellow, {}, 'none', {}) 276 | call hiTS('@attribute', 'TSAttribute', s:cdBlueGreen, {}, 'none', {}) 277 | call hiTS('@namespace', 'TSNamespace', s:cdBlueGreen, {}, 'none', {}) 278 | " Functions 279 | call hiTSlink('@function.builtin', 'TSFuncBuiltin', 'Function') 280 | call hiTSlink('@function', 'TSFunction','Function') 281 | call hiTSlink('@function.macro', 'TSFuncMacro','Function') 282 | call hiTS('@parameter', 'TSParameter', s:cdLightBlue, {}, 'none', {}) 283 | call hiTS('@parameter.reference', 'TSParameterReference', s:cdLightBlue, {}, 'none', {}) 284 | call hiTS('@method', 'TSMethod', s:cdYellow, {}, 'none', {}) 285 | call hiTS('@field', 'TSField', s:cdLightBlue, {}, 'none', {}) 286 | call hiTS('@property', 'TSProperty', s:cdLightBlue, {}, 'none', {}) 287 | call hiTS('@constructor', 'TSConstructor', s:cdBlueGreen, {}, 'none', {}) 288 | " Keywords 289 | call hiTSlink('@conditional', 'TSConditional', 'Conditional') 290 | call hiTSlink('@repeat', 'TSRepeat', 'Repeat') 291 | call hiTS('@label', 'TSLabel', s:cdLightBlue, {}, 'none', {}) 292 | call hiTS('@keyword', 'TSKeyword', s:cdBlue, {}, 'none', {}) 293 | call hiTS('@keyword.function', 'TSKeywordFunction', s:cdBlue, {}, 'none', {}) 294 | call hiTS('@keyword.operator', 'TSKeywordOperator', s:cdBlue, {}, 'none', {}) 295 | call hiTS('@operator', 'TSOperator', s:cdFront, {}, 'none', {}) 296 | call hiTS('@exception', 'TSException', s:cdPink, {}, 'none', {}) 297 | call hiTS('@type', 'TSType', s:cdBlueGreen, {}, 'none', {}) 298 | call hiTSlink('@type.builtin', 'TSTypeBuiltin', 'Type') 299 | call hi('TSStructure', s:cdLightBlue, {}, 'none', {}) 300 | call hiTSlink('@include', 'TSInclude', 'Include') 301 | " Variable 302 | call hiTS('@variable', 'TSVariable', s:cdLightBlue, {}, 'none', {}) 303 | call hiTS('@variable.builtin', 'TSVariableBuiltin', s:cdLightBlue, {}, 'none', {}) 304 | " Text 305 | call hiTS('@text', 'TSText', s:cdFront, s:cdNone, 'bold', {}) 306 | call hiTS('@text.strong', 'TSStrong', s:cdFront, s:cdNone, 'bold', {}) 307 | call hiTS('@text.emphasis', 'TSEmphasis', s:cdYellowOrange, s:cdNone, 'italic', {}) 308 | call hiTSlink('@text.underline', 'TSUnderline', 'Underlined') 309 | call hiTS('@text.title', 'TSTitle', s:cdBlue, {}, 'bold', {}) 310 | call hiTS('@text.literal', 'TSLiteral', s:cdOrange, {}, 'none', {}) 311 | call hiTS('@text.uri', 'TSURI', s:cdOrange, {}, 'none', {}) 312 | " Tags 313 | call hiTS('@tag', 'TSTag', s:cdBlue, {}, 'none', {}) 314 | call hiTS('@tag.delimiter', 'TSTagDelimiter', s:cdGray, {}, 'none', {}) 315 | 316 | " hrsh7th/nvim-cmp (github) 317 | call hi('CmpItemAbbrDeprecated', s:cdGray, {}, 'none', {}) 318 | call hi('CmpItemAbbrMatch', s:cdBlue, {}, 'none', {}) 319 | hi! link CmpItemAbbrMatchFuzzy CmpItemAbbrMatch 320 | call hi('CmpItemKindVariable', s:cdLightBlue, {}, 'none', {}) 321 | call hi('CmpItemKindInterface', s:cdLightBlue, {}, 'none', {}) 322 | call hi('CmpItemKindText', s:cdLightBlue, {}, 'none', {}) 323 | call hi('CmpItemKindFunction', s:cdPink, {}, 'none', {}) 324 | call hi('CmpItemKindMethod ', s:cdPink, {}, 'none', {}) 325 | call hi('CmpItemKindKeyword', s:cdFront, {}, 'none', {}) 326 | call hi('CmpItemKindProperty', s:cdFront, {}, 'none', {}) 327 | call hi('CmpItemKindUnit', s:cdFront, {}, 'none', {}) 328 | endif 329 | 330 | " MARKDOWN (built-in) 331 | call hi('markdownH1', s:cdBlue, {}, 'bold', {}) 332 | hi! link markdownH2 markdownH1 333 | hi! link markdownH3 markdownH1 334 | hi! link markdownH4 markdownH1 335 | hi! link markdownH5 markdownH1 336 | hi! link markdownH6 markdownH1 337 | call hi('markdownHeadingDelimiter', s:cdBlue, {}, 'none', {}) 338 | call hi('markdownBold', s:cdBlue, {}, 'bold', {}) 339 | call hi('markdownRule', s:cdBlue, {}, 'bold', {}) 340 | call hi('markdownCode', s:cdOrange, {}, 'none', {}) 341 | hi! link markdownCodeDelimiter markdownCode 342 | call hi('markdownFootnote', s:cdOrange, {}, 'none', {}) 343 | hi! link markdownFootnoteDefinition markdownFootnote 344 | call hi('markdownUrl', s:cdLightBlue, {}, 'underline', {}) 345 | call hi('markdownLinkText', s:cdOrange, {}, 'none', {}) 346 | call hi('markdownEscape', s:cdYellowOrange, {}, 'none', {}) 347 | 348 | " ASCIIDOC (built-in) 349 | call hi("asciidocAttributeEntry", s:cdYellowOrange, {}, 'none', {}) 350 | call hi("asciidocAttributeList", s:cdPink, {}, 'none', {}) 351 | call hi("asciidocAttributeRef", s:cdYellowOrange, {}, 'none', {}) 352 | call hi("asciidocHLabel", s:cdBlue, {}, 'bold', {}) 353 | call hi("asciidocListingBlock", s:cdOrange, {}, 'none', {}) 354 | call hi("asciidocMacroAttributes", s:cdYellowOrange, {}, 'none', {}) 355 | call hi("asciidocOneLineTitle", s:cdBlue, {}, 'bold', {}) 356 | call hi("asciidocPassthroughBlock", s:cdBlue, {}, 'none', {}) 357 | call hi("asciidocQuotedMonospaced", s:cdOrange, {}, 'none', {}) 358 | call hi("asciidocTriplePlusPassthrough", s:cdYellow, {}, 'none', {}) 359 | call hi("asciidocMacro", s:cdPink, {}, 'none', {}) 360 | call hi("asciidocAdmonition", s:cdOrange, {}, 'none', {}) 361 | call hi("asciidocQuotedEmphasized", s:cdBlue, {}, 'italic', {}) 362 | call hi("asciidocQuotedEmphasized2", s:cdBlue, {}, 'italic', {}) 363 | call hi("asciidocQuotedEmphasizedItalic", s:cdBlue, {}, 'italic', {}) 364 | hi! link asciidocBackslash Keyword 365 | hi! link asciidocQuotedBold markdownBold 366 | hi! link asciidocQuotedMonospaced2 asciidocQuotedMonospaced 367 | hi! link asciidocQuotedUnconstrainedBold asciidocQuotedBold 368 | hi! link asciidocQuotedUnconstrainedEmphasized asciidocQuotedEmphasized 369 | hi! link asciidocURL markdownUrl 370 | 371 | " JSON (built-in) 372 | call hi('jsonKeyword', s:cdLightBlue, {}, 'none', {}) 373 | call hi('jsonEscape', s:cdYellowOrange, {}, 'none', {}) 374 | call hi('jsonNull', s:cdBlue, {}, 'none', {}) 375 | call hi('jsonBoolean', s:cdBlue, {}, 'none', {}) 376 | 377 | " HTML (built-in) 378 | call hi('htmlTag', s:cdGray, {}, 'none', {}) 379 | call hi('htmlEndTag', s:cdGray, {}, 'none', {}) 380 | call hi('htmlTagName', s:cdBlue, {}, 'none', {}) 381 | hi! link htmlSpecialTagName htmlTagName 382 | call hi('htmlArg', s:cdLightBlue, {}, 'none', {}) 383 | 384 | " PHP (built-in) 385 | call hi('phpClass', s:cdBlueGreen, {}, 'none', {}) 386 | hi! link phpUseClass phpClass 387 | hi! link phpStaticClasses phpClass 388 | call hi('phpMethod', s:cdYellow, {}, 'none', {}) 389 | call hi('phpFunction', s:cdYellow, {}, 'none', {}) 390 | call hi('phpInclude', s:cdBlue, {}, 'none', {}) 391 | call hi('phpRegion', s:cdBlueGreen, {}, 'none', {}) 392 | call hi('phpMethodsVar', s:cdLightBlue, {}, 'none', {}) 393 | 394 | " CSS (built-in) 395 | call hi('cssBraces', s:cdFront, {}, 'none', {}) 396 | call hi('cssInclude', s:cdPink, {}, 'none', {}) 397 | call hi('cssTagName', s:cdBlue, {}, 'none', {}) 398 | call hi('cssClassName', s:cdYellowOrange, {}, 'none', {}) 399 | call hi('cssPseudoClass', s:cdYellowOrange, {}, 'none', {}) 400 | call hi('cssPseudoClassId', s:cdOrange, {}, 'none', {}) 401 | call hi('cssPseudoClassLang', s:cdYellowOrange, {}, 'none', {}) 402 | call hi('cssIdentifier', s:cdYellowOrange, {}, 'none', {}) 403 | call hi('cssProp', s:cdLightBlue, {}, 'none', {}) 404 | call hi('cssDefinition', s:cdLightBlue, {}, 'none', {}) 405 | call hi('cssAttr', s:cdOrange, {}, 'none', {}) 406 | call hi('cssAttrRegion', s:cdOrange, {}, 'none', {}) 407 | call hi('cssColor', s:cdOrange, {}, 'none', {}) 408 | call hi('cssFunction', s:cdLightBlue, {}, 'none', {}) 409 | call hi('cssFunctionName', s:cdYellow, {}, 'none', {}) 410 | call hi('cssVendor', s:cdOrange, {}, 'none', {}) 411 | call hi('cssValueNumber', s:cdOrange, {}, 'none', {}) 412 | call hi('cssValueLength', s:cdLightGreen, {}, 'none', {}) 413 | call hi('cssUnitDecorators', s:cdLightGreen, {}, 'none', {}) 414 | call hi('cssStyle', s:cdLightBlue, {}, 'none', {}) 415 | call hi('cssImportant', s:cdBlue, {}, 'none', {}) 416 | call hi('cssSelectorOp', s:cdFront, {}, 'none', {}) 417 | call hi('cssKeyFrameProp2', s:cdLightGreen, {}, 'none', {}) 418 | 419 | " JavaScript: 420 | call hi('jsVariableDef', s:cdLightBlue, {}, 'none', {}) 421 | call hi('jsFuncArgs', s:cdLightBlue, {}, 'none', {}) 422 | call hi('jsFuncBlock', s:cdLightBlue, {}, 'none', {}) 423 | call hi('jsRegexpString', s:cdLightRed, {}, 'none', {}) 424 | call hi('jsThis', s:cdBlue, {}, 'none', {}) 425 | call hi('jsOperatorKeyword', s:cdBlue, {}, 'none', {}) 426 | call hi('jsDestructuringBlock', s:cdLightBlue, {}, 'none', {}) 427 | call hi('jsObjectKey', s:cdLightBlue, {}, 'none', {}) 428 | call hi('jsGlobalObjects', s:cdBlueGreen, {}, 'none', {}) 429 | call hi('jsModuleKeyword', s:cdLightBlue, {}, 'none', {}) 430 | call hi('jsClassDefinition', s:cdBlueGreen, {}, 'none', {}) 431 | call hi('jsClassKeyword', s:cdBlue, {}, 'none', {}) 432 | call hi('jsExtendsKeyword', s:cdBlue, {}, 'none', {}) 433 | call hi('jsExportDefault', s:cdPink, {}, 'none', {}) 434 | call hi('jsFuncCall', s:cdYellow, {}, 'none', {}) 435 | call hi('jsObjectValue', s:cdLightBlue, {}, 'none', {}) 436 | call hi('jsParen', s:cdLightBlue, {}, 'none', {}) 437 | call hi('jsObjectProp', s:cdLightBlue, {}, 'none', {}) 438 | call hi('jsIfElseBlock', s:cdLightBlue, {}, 'none', {}) 439 | call hi('jsParenIfElse', s:cdLightBlue, {}, 'none', {}) 440 | call hi('jsSpreadOperator', s:cdLightBlue, {}, 'none', {}) 441 | call hi('jsSpreadExpression', s:cdLightBlue, {}, 'none', {}) 442 | 443 | " Vue: 444 | call hi('VueComponentName', s:cdBlueGreen, {}, 'none', {}) 445 | call hi('VueValue', s:cdLightBlue, {}, 'none', {}) 446 | call hi('VueBrace', s:cdYellowOrange, {}, 'none', {}) 447 | call hi('VueExpression', s:cdYellow, {}, 'none', {}) 448 | call hi('VueTag', s:cdLightBlue, {}, 'none', {}) 449 | call hi('VueKey', s:cdPink, {}, 'none', {}) 450 | 451 | " Typescript: 452 | call hi('typescriptLabel', s:cdLightBlue, {}, 'none', {}) 453 | call hi('typescriptTry', s:cdPink, {}, 'none', {}) 454 | call hi('typescriptExceptions', s:cdPink, {}, 'none', {}) 455 | call hi('typescriptBraces', s:cdFront, {}, 'none', {}) 456 | call hi('typescriptEndColons', s:cdLightBlue, {}, 'none', {}) 457 | call hi('typescriptParens', s:cdFront, {}, 'none', {}) 458 | call hi('typescriptDocTags', s:cdBlue, {}, 'none', {}) 459 | call hi('typescriptDocComment', s:cdBlueGreen, {}, 'none', {}) 460 | call hi('typescriptLogicSymbols', s:cdLightBlue, {}, 'none', {}) 461 | call hi('typescriptImport', s:cdPink, {}, 'none', {}) 462 | call hi('typescriptBOM', s:cdLightBlue, {}, 'none', {}) 463 | call hi('typescriptVariableDeclaration', s:cdLightBlue, {}, 'none', {}) 464 | call hi('typescriptVariable', s:cdBlue, {}, 'none', {}) 465 | call hi('typescriptExport', s:cdPink, {}, 'none', {}) 466 | call hi('typescriptAliasDeclaration', s:cdBlueGreen, {}, 'none', {}) 467 | call hi('typescriptAliasKeyword', s:cdBlue, {}, 'none', {}) 468 | call hi('typescriptClassName', s:cdBlueGreen, {}, 'none', {}) 469 | call hi('typescriptAccessibilityModifier', s:cdBlue, {}, 'none', {}) 470 | call hi('typescriptOperator', s:cdBlue, {}, 'none', {}) 471 | call hi('typescriptArrowFunc', s:cdBlue, {}, 'none', {}) 472 | call hi('typescriptMethodAccessor', s:cdBlue, {}, 'none', {}) 473 | call hi('typescriptMember', s:cdYellow, {}, 'none', {}) 474 | call hi('typescriptTypeReference', s:cdBlueGreen, {}, 'none', {}) 475 | call hi('typescriptDefault', s:cdLightBlue, {}, 'none', {}) 476 | call hi('typescriptTemplateSB', s:cdYellowOrange, {}, 'none', {}) 477 | call hi('typescriptArrowFuncArg', s:cdLightBlue, {}, 'none', {}) 478 | call hi('typescriptParamImpl', s:cdLightBlue, {}, 'none', {}) 479 | call hi('typescriptFuncComma', s:cdLightBlue, {}, 'none', {}) 480 | call hi('typescriptCastKeyword', s:cdLightBlue, {}, 'none', {}) 481 | call hi('typescriptCall', s:cdBlue, {}, 'none', {}) 482 | call hi('typescriptCase', s:cdLightBlue, {}, 'none', {}) 483 | call hi('typescriptReserved', s:cdPink, {}, 'none', {}) 484 | call hi('typescriptDefault', s:cdLightBlue, {}, 'none', {}) 485 | call hi('typescriptDecorator', s:cdYellow, {}, 'none', {}) 486 | call hi('typescriptPredefinedType', s:cdBlueGreen, {}, 'none', {}) 487 | call hi('typescriptClassHeritage', s:cdBlueGreen, {}, 'none', {}) 488 | call hi('typescriptClassExtends', s:cdBlue, {}, 'none', {}) 489 | call hi('typescriptClassKeyword', s:cdBlue, {}, 'none', {}) 490 | call hi('typescriptBlock', s:cdLightBlue, {}, 'none', {}) 491 | call hi('typescriptDOMDocProp', s:cdLightBlue, {}, 'none', {}) 492 | call hi('typescriptTemplateSubstitution', s:cdLightBlue, {}, 'none', {}) 493 | call hi('typescriptClassBlock', s:cdLightBlue, {}, 'none', {}) 494 | call hi('typescriptFuncCallArg', s:cdLightBlue, {}, 'none', {}) 495 | call hi('typescriptIndexExpr', s:cdLightBlue, {}, 'none', {}) 496 | call hi('typescriptConditionalParen', s:cdLightBlue, {}, 'none', {}) 497 | call hi('typescriptArray', s:cdYellow, {}, 'none', {}) 498 | call hi('typescriptES6SetProp', s:cdLightBlue, {}, 'none', {}) 499 | call hi('typescriptObjectLiteral', s:cdLightBlue, {}, 'none', {}) 500 | call hi('typescriptTypeParameter', s:cdBlueGreen, {}, 'none', {}) 501 | call hi('typescriptEnumKeyword', s:cdBlue, {}, 'none', {}) 502 | call hi('typescriptEnum', s:cdBlueGreen, {}, 'none', {}) 503 | call hi('typescriptLoopParen', s:cdLightBlue, {}, 'none', {}) 504 | call hi('typescriptParenExp', s:cdLightBlue, {}, 'none', {}) 505 | call hi('typescriptModule', s:cdLightBlue, {}, 'none', {}) 506 | call hi('typescriptAmbientDeclaration', s:cdBlue, {}, 'none', {}) 507 | call hi('typescriptModule', s:cdBlue, {}, 'none', {}) 508 | call hi('typescriptFuncTypeArrow', s:cdBlue, {}, 'none', {}) 509 | call hi('typescriptInterfaceHeritage', s:cdBlueGreen, {}, 'none', {}) 510 | call hi('typescriptInterfaceName', s:cdBlueGreen, {}, 'none', {}) 511 | call hi('typescriptInterfaceKeyword', s:cdBlue, {}, 'none', {}) 512 | call hi('typescriptInterfaceExtends', s:cdBlue, {}, 'none', {}) 513 | call hi('typescriptGlobal', s:cdBlueGreen, {}, 'none', {}) 514 | call hi('typescriptAsyncFuncKeyword', s:cdBlue, {}, 'none', {}) 515 | call hi('typescriptFuncKeyword', s:cdBlue, {}, 'none', {}) 516 | call hi('typescriptGlobalMethod', s:cdYellow, {}, 'none', {}) 517 | call hi('typescriptPromiseMethod', s:cdYellow, {}, 'none', {}) 518 | call hi('typescriptIdentifierName', s:cdLightBlue, {}, 'none', {}) 519 | call hi('typescriptCacheMethod', s:cdYellow, {}, 'none', {}) 520 | 521 | " XML: 522 | call hi('xmlTag', s:cdBlueGreen, {}, 'none', {}) 523 | call hi('xmlTagName', s:cdBlueGreen, {}, 'none', {}) 524 | call hi('xmlEndTag', s:cdBlueGreen, {}, 'none', {}) 525 | 526 | " Ruby: 527 | call hi('rubyClassNameTag', s:cdBlueGreen, {}, 'none', {}) 528 | call hi('rubyClassName', s:cdBlueGreen, {}, 'none', {}) 529 | call hi('rubyModuleName', s:cdBlueGreen, {}, 'none', {}) 530 | call hi('rubyConstant', s:cdBlueGreen, {}, 'none', {}) 531 | 532 | " Golang: 533 | call hi('goPackage', s:cdBlue, {}, 'none', {}) 534 | call hi('goImport', s:cdBlue, {}, 'none', {}) 535 | call hi('goVar', s:cdBlue, {}, 'none', {}) 536 | call hi('goConst', s:cdBlue, {}, 'none', {}) 537 | call hi('goStatement', s:cdPink, {}, 'none', {}) 538 | call hi('goType', s:cdBlueGreen, {}, 'none', {}) 539 | call hi('goSignedInts', s:cdBlueGreen, {}, 'none', {}) 540 | call hi('goUnsignedInts', s:cdBlueGreen, {}, 'none', {}) 541 | call hi('goFloats', s:cdBlueGreen, {}, 'none', {}) 542 | call hi('goComplexes', s:cdBlueGreen, {}, 'none', {}) 543 | call hi('goBuiltins', s:cdYellow, {}, 'none', {}) 544 | call hi('goBoolean', s:cdBlue, {}, 'none', {}) 545 | call hi('goPredefinedIdentifiers', s:cdBlue, {}, 'none', {}) 546 | call hi('goTodo', s:cdGreen, {}, 'none', {}) 547 | call hi('goDeclaration', s:cdBlue, {}, 'none', {}) 548 | call hi('goDeclType', s:cdBlue, {}, 'none', {}) 549 | call hi('goTypeDecl', s:cdBlue, {}, 'none', {}) 550 | call hi('goTypeName', s:cdBlueGreen, {}, 'none', {}) 551 | call hi('goVarAssign', s:cdLightBlue, {}, 'none', {}) 552 | call hi('goVarDefs', s:cdLightBlue, {}, 'none', {}) 553 | call hi('goReceiver', s:cdFront, {}, 'none', {}) 554 | call hi('goReceiverType', s:cdFront, {}, 'none', {}) 555 | call hi('goFunctionCall', s:cdYellow, {}, 'none', {}) 556 | call hi('goMethodCall', s:cdYellow, {}, 'none', {}) 557 | call hi('goSingleDecl', s:cdLightBlue, {}, 'none', {}) 558 | 559 | " Python: 560 | call hi('pythonStatement', s:cdBlue, {}, 'none', {}) 561 | call hi('pythonOperator', s:cdBlue, {}, 'none', {}) 562 | call hi('pythonException', s:cdPink, {}, 'none', {}) 563 | call hi('pythonExClass', s:cdBlueGreen, {}, 'none', {}) 564 | call hi('pythonBuiltinObj', s:cdLightBlue, {}, 'none', {}) 565 | call hi('pythonBuiltinType', s:cdBlueGreen, {}, 'none', {}) 566 | call hi('pythonBoolean', s:cdBlue, {}, 'none', {}) 567 | call hi('pythonNone', s:cdBlue, {}, 'none', {}) 568 | call hi('pythonTodo', s:cdBlue, {}, 'none', {}) 569 | call hi('pythonClassVar', s:cdBlue, {}, 'none', {}) 570 | call hi('pythonClassDef', s:cdBlueGreen, {}, 'none', {}) 571 | 572 | " TeX: 573 | call hi('texStatement', s:cdBlue, {}, 'none', {}) 574 | call hi('texBeginEnd', s:cdYellow, {}, 'none', {}) 575 | call hi('texBeginEndName', s:cdLightBlue, {}, 'none', {}) 576 | call hi('texOption', s:cdLightBlue, {}, 'none', {}) 577 | call hi('texBeginEndModifier', s:cdLightBlue, {}, 'none', {}) 578 | call hi('texDocType', s:cdPink, {}, 'none', {}) 579 | call hi('texDocTypeArgs', s:cdLightBlue, {}, 'none', {}) 580 | 581 | " GIT (built-in) 582 | call hi('gitcommitHeader', s:cdGray, {}, 'none', {}) 583 | call hi('gitcommitOnBranch', s:cdGray, {}, 'none', {}) 584 | call hi('gitcommitBranch', s:cdPink, {}, 'none', {}) 585 | call hi('gitcommitComment', s:cdGray, {}, 'none', {}) 586 | call hi('gitcommitSelectedType', s:cdGreen, {}, 'none', {}) 587 | hi! link gitcommitSelectedFile gitcommitSelectedType 588 | call hi('gitcommitDiscardedType', s:cdRed, {}, 'none', {}) 589 | hi! link gitcommitDiscardedFile gitcommitDiscardedType 590 | hi! link gitcommitOverflow gitcommitDiscardedType 591 | call hi('gitcommitSummary', s:cdPink, {}, 'none', {}) 592 | call hi('gitcommitBlank', s:cdPink, {}, 'none', {}) 593 | 594 | " Lua: 595 | call hi('luaFuncCall', s:cdYellow, {}, 'none', {}) 596 | call hi('luaFuncArgName', s:cdLightBlue, {}, 'none', {}) 597 | call hi('luaFuncKeyword', s:cdPink, {}, 'none', {}) 598 | call hi('luaLocal', s:cdPink, {}, 'none', {}) 599 | call hi('luaBuiltIn', s:cdBlue, {}, 'none', {}) 600 | 601 | " SH: 602 | call hi('shDeref', s:cdLightBlue, {}, 'none', {}) 603 | call hi('shVariable', s:cdLightBlue, {}, 'none', {}) 604 | 605 | " SQL: 606 | call hi('sqlKeyword', s:cdPink, {}, 'none', {}) 607 | call hi('sqlFunction', s:cdYellowOrange, {}, 'none', {}) 608 | call hi('sqlOperator', s:cdPink, {}, 'none', {}) 609 | 610 | " YAML: 611 | call hi('yamlKey', s:cdBlue, {}, 'none', {}) 612 | call hi('yamlConstant', s:cdBlue, {}, 'none', {}) 613 | 614 | " C++: 615 | call hi('CTagsClass', s:cdBlueGreen, {}, 'none', {}) 616 | call hi('CTagsStructure', s:cdBlueGreen, {}, 'none', {}) 617 | call hi('CTagsNamespace', s:cdBlueGreen, {}, 'none', {}) 618 | call hi('CTagsGlobalVariable', s:cdBlueGreen, {}, 'none', {}) 619 | call hi('CTagsDefinedName ', s:cdBlue, {}, 'none', {}) 620 | highlight def link CTagsFunction Function 621 | highlight def link CTagsMember Identifier 622 | 623 | " C++ color_coded 624 | call hi('StructDecl', s:cdBlueGreen, {}, 'none', {}) 625 | call hi('UnionDecl', s:cdBlueGreen, {}, 'none', {}) 626 | call hi('ClassDecl', s:cdBlueGreen, {}, 'none', {}) 627 | call hi('TypeRef', s:cdBlueGreen, {}, 'none', {}) 628 | call hi('TypedefDecl', s:cdBlueGreen, {}, 'none', {}) 629 | call hi('TypeAliasDecl', s:cdBlueGreen, {}, 'none', {}) 630 | call hi('EnumDecl', s:cdBlueGreen, {}, 'none', {}) 631 | call hi('TemplateTypeParameter', s:cdBlueGreen, {}, 'none', {}) 632 | call hi('TypeAliasTemplateDecl', s:cdBlueGreen, {}, 'none', {}) 633 | call hi('ClassTemplate', s:cdBlueGreen, {}, 'none', {}) 634 | call hi('ClassTemplatePartialSpecialization', s:cdBlueGreen, {}, 'none', {}) 635 | call hi('FunctionTemplate', s:cdBlueGreen, {}, 'none', {}) 636 | call hi('TemplateRef', s:cdBlueGreen, {}, 'none', {}) 637 | call hi('TemplateTemplateParameter', s:cdBlueGreen, {}, 'none', {}) 638 | call hi('UsingDeclaration', s:cdBlueGreen, {}, 'none', {}) 639 | call hi('MemberRef', s:cdLightBlue, {}, 'italic', {}) 640 | call hi('MemberRefExpr', s:cdYellow, {}, 'italic', {}) 641 | call hi('Namespace', s:cdSilver, {}, 'none', {}) 642 | call hi('NamespaceRef', s:cdSilver, {}, 'none', {}) 643 | call hi('NamespaceAlias', s:cdSilver, {}, 'none', {}) 644 | 645 | " C++ lsp-cxx-highlight 646 | call hi('LspCxxHlSymClass', s:cdBlueGreen, {}, 'none', {}) 647 | call hi('LspCxxHlSymStruct', s:cdBlueGreen, {}, 'none', {}) 648 | call hi('LspCxxHlSymEnum', s:cdBlueGreen, {}, 'none', {}) 649 | call hi('LspCxxHlSymTypeAlias', s:cdBlueGreen, {}, 'none', {}) 650 | call hi('LspCxxHlSymTypeParameter', s:cdBlueGreen, {}, 'none', {}) 651 | call hi('LspCxxHlSymConcept', s:cdBlueGreen, {}, 'italic', {}) 652 | call hi('LspCxxHlSymNamespace', s:cdSilver, {}, 'none', {}) 653 | 654 | " Coc Explorer: 655 | call hi('CocHighlightText', {}, s:cdSelection, 'none', {}) 656 | call hi('CocExplorerIndentLine', s:cdCursorDark, {}, 'none', {}) 657 | call hi('CocInlayHint', s:cdLineNumber, {}, 'none', {}) 658 | --------------------------------------------------------------------------------