summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/vim/colors/jellybeans.vim733
-rw-r--r--.config/vim/colors/moonfly.vim963
2 files changed, 0 insertions, 1696 deletions
diff --git a/.config/vim/colors/jellybeans.vim b/.config/vim/colors/jellybeans.vim
deleted file mode 100644
index 3b9bfb6..0000000
--- a/.config/vim/colors/jellybeans.vim
+++ /dev/null
@@ -1,733 +0,0 @@
-" Vim color file
-"
-" " __ _ _ _ "
-" " \ \ ___| | |_ _| |__ ___ __ _ _ __ ___ "
-" " \ \/ _ \ | | | | | _ \ / _ \/ _ | _ \/ __| "
-" " /\_/ / __/ | | |_| | |_| | __/ |_| | | | \__ \ "
-" " \___/ \___|_|_|\__ |____/ \___|\____|_| |_|___/ "
-" " \___/ "
-"
-" "A colorful, dark color scheme for Vim."
-"
-" File: jellybeans.vim
-" URL: github.com/nanotech/jellybeans.vim
-" Scripts URL: vim.org/scripts/script.php?script_id=2555
-" Maintainer: NanoTech (nanotech.nanotechcorp.net)
-" Version: 1.7
-" Last Change: June 21st, 2019
-" License: MIT
-" Contributors: Andrew Wong (w0ng)
-" Benjamin R. Haskell (benizi)
-" Brian Marshall (bmars)
-" Daniel Herbert (pocketninja)
-" David Liang <bmdavll at gmail dot com>
-" Filipe Silva (ninrod)
-" Henry So, Jr. <henryso@panix.com>
-" Ihor Kalnytskyi (ikalnytskyi)
-" Joe Doherty (docapotamus)
-" Karl Litterfeldt (Litterfeldt)
-" Keith Pitt (keithpitt)
-" Mike Schreifels (schreifels)
-" Philipp Rustemeier (12foo)
-" Rafael Bicalho (rbika)
-" Rich Healey (richo)
-" Siwen Yu (yusiwen)
-" Tim Willis (willist)
-" Tom McLaughlin (tmcoma)
-"
-" Copyright (c) 2009-2019 NanoTech
-"
-" Permission is hereby granted, free of charge, to any per‐
-" son obtaining a copy of this software and associated doc‐
-" umentation files (the “Software”), to deal in the Soft‐
-" ware without restriction, including without limitation
-" the rights to use, copy, modify, merge, publish, distrib‐
-" ute, sublicense, and/or sell copies of the Software, and
-" to permit persons to whom the Software is furnished to do
-" so, subject to the following conditions:
-"
-" The above copyright notice and this permission notice
-" shall be included in all copies or substantial portions
-" of the Software.
-"
-" THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY
-" KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
-" THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICU‐
-" LAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-" AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CON‐
-" TRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CON‐
-" NECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-" THE SOFTWARE.
-
-set background=dark
-
-hi clear
-
-if exists("syntax_on")
- syntax reset
-endif
-
-let colors_name = "jellybeans"
-
-if has("gui_running") || (has('termguicolors') && &termguicolors)
- let s:true_color = 1
-else
- let s:true_color = 0
-endif
-
-if s:true_color || &t_Co >= 88
- let s:low_color = 0
-else
- let s:low_color = 1
-endif
-
-" Configuration Variables:
-" - g:jellybeans_overrides (default = {})
-" - g:jellybeans_use_lowcolor_black (default = 0)
-" - g:jellybeans_use_gui_italics (default = 1)
-" - g:jellybeans_use_term_italics (default = 0)
-
-let s:background_color = "151515"
-
-if exists("g:jellybeans_overrides")
- let s:overrides = g:jellybeans_overrides
-else
- let s:overrides = {}
-endif
-
-" Backwards compatibility
-if exists("g:jellybeans_background_color")
- \ || exists("g:jellybeans_background_color_256")
- \ || exists("g:jellybeans_use_term_background_color")
-
- let s:overrides = deepcopy(s:overrides)
-
- if !has_key(s:overrides, "background")
- let s:overrides["background"] = {}
- endif
-
- if exists("g:jellybeans_background_color")
- let s:overrides["background"]["guibg"] = g:jellybeans_background_color
- endif
-
- if exists("g:jellybeans_background_color_256")
- let s:overrides["background"]["256ctermbg"] = g:jellybeans_background_color_256
- endif
-
- if exists("g:jellybeans_use_term_background_color")
- \ && g:jellybeans_use_term_background_color
- let s:overrides["background"]["ctermbg"] = "NONE"
- let s:overrides["background"]["256ctermbg"] = "NONE"
- endif
-endif
-
-if exists("g:jellybeans_use_lowcolor_black") && g:jellybeans_use_lowcolor_black
- let s:termBlack = "Black"
-else
- let s:termBlack = "Grey"
-endif
-
-" When `termguicolors` is set, Vim[^1] ignores `hi Normal guibg=NONE`
-" after Normal's `guibg` is already set to a color. See:
-"
-" - https://github.com/vim/vim/issues/981
-" - https://github.com/nanotech/jellybeans.vim/issues/64
-"
-" To work around this, ensure we don't set the default background
-" color before an override changes it to `NONE` by ensuring that the
-" background color isn't set to a value different from its override.
-"
-" [^1]: Tested on 8.0.567. Does not apply to Neovim.
-"
-if has_key(s:overrides, "background") && has_key(s:overrides["background"], "guibg")
- let s:background_color = s:overrides["background"]["guibg"]
-endif
-
-" Color approximation functions by Henry So, Jr. and David Liang {{{
-" Added to jellybeans.vim by Daniel Herbert
-
-if &t_Co == 88
-
- " returns an approximate grey index for the given grey level
- fun! s:grey_number(x)
- if a:x < 23
- return 0
- elseif a:x < 69
- return 1
- elseif a:x < 103
- return 2
- elseif a:x < 127
- return 3
- elseif a:x < 150
- return 4
- elseif a:x < 173
- return 5
- elseif a:x < 196
- return 6
- elseif a:x < 219
- return 7
- elseif a:x < 243
- return 8
- else
- return 9
- endif
- endfun
-
- " returns the actual grey level represented by the grey index
- fun! s:grey_level(n)
- if a:n == 0
- return 0
- elseif a:n == 1
- return 46
- elseif a:n == 2
- return 92
- elseif a:n == 3
- return 115
- elseif a:n == 4
- return 139
- elseif a:n == 5
- return 162
- elseif a:n == 6
- return 185
- elseif a:n == 7
- return 208
- elseif a:n == 8
- return 231
- else
- return 255
- endif
- endfun
-
- " returns the palette index for the given grey index
- fun! s:grey_color(n)
- if a:n == 0
- return 16
- elseif a:n == 9
- return 79
- else
- return 79 + a:n
- endif
- endfun
-
- " returns an approximate color index for the given color level
- fun! s:rgb_number(x)
- if a:x < 69
- return 0
- elseif a:x < 172
- return 1
- elseif a:x < 230
- return 2
- else
- return 3
- endif
- endfun
-
- " returns the actual color level for the given color index
- fun! s:rgb_level(n)
- if a:n == 0
- return 0
- elseif a:n == 1
- return 139
- elseif a:n == 2
- return 205
- else
- return 255
- endif
- endfun
-
- " returns the palette index for the given R/G/B color indices
- fun! s:rgb_color(x, y, z)
- return 16 + (a:x * 16) + (a:y * 4) + a:z
- endfun
-
-else " assuming &t_Co == 256
-
- " returns an approximate grey index for the given grey level
- fun! s:grey_number(x)
- if a:x < 14
- return 0
- else
- let l:n = (a:x - 8) / 10
- let l:m = (a:x - 8) % 10
- if l:m < 5
- return l:n
- else
- return l:n + 1
- endif
- endif
- endfun
-
- " returns the actual grey level represented by the grey index
- fun! s:grey_level(n)
- if a:n == 0
- return 0
- else
- return 8 + (a:n * 10)
- endif
- endfun
-
- " returns the palette index for the given grey index
- fun! s:grey_color(n)
- if a:n == 0
- return 16
- elseif a:n == 25
- return 231
- else
- return 231 + a:n
- endif
- endfun
-
- " returns an approximate color index for the given color level
- fun! s:rgb_number(x)
- if a:x < 75
- return 0
- else
- let l:n = (a:x - 55) / 40
- let l:m = (a:x - 55) % 40
- if l:m < 20
- return l:n
- else
- return l:n + 1
- endif
- endif
- endfun
-
- " returns the actual color level for the given color index
- fun! s:rgb_level(n)
- if a:n == 0
- return 0
- else
- return 55 + (a:n * 40)
- endif
- endfun
-
- " returns the palette index for the given R/G/B color indices
- fun! s:rgb_color(x, y, z)
- return 16 + (a:x * 36) + (a:y * 6) + a:z
- endfun
-
-endif
-
-" returns the palette index to approximate the given R/G/B color levels
-fun! s:color(r, g, b)
- " map greys directly (see xterm's 256colres.pl)
- if &t_Co == 256 && a:r == a:g && a:g == a:b && a:r > 3 && a:r < 243
- return (a:r - 8) / 10 + 232
- endif
-
- " get the closest grey
- let l:gx = s:grey_number(a:r)
- let l:gy = s:grey_number(a:g)
- let l:gz = s:grey_number(a:b)
-
- " get the closest color
- let l:x = s:rgb_number(a:r)
- let l:y = s:rgb_number(a:g)
- let l:z = s:rgb_number(a:b)
-
- if l:gx == l:gy && l:gy == l:gz
- " there are two possibilities
- let l:dgr = s:grey_level(l:gx) - a:r
- let l:dgg = s:grey_level(l:gy) - a:g
- let l:dgb = s:grey_level(l:gz) - a:b
- let l:dgrey = (l:dgr * l:dgr) + (l:dgg * l:dgg) + (l:dgb * l:dgb)
- let l:dr = s:rgb_level(l:gx) - a:r
- let l:dg = s:rgb_level(l:gy) - a:g
- let l:db = s:rgb_level(l:gz) - a:b
- let l:drgb = (l:dr * l:dr) + (l:dg * l:dg) + (l:db * l:db)
- if l:dgrey < l:drgb
- " use the grey
- return s:grey_color(l:gx)
- else
- " use the color
- return s:rgb_color(l:x, l:y, l:z)
- endif
- else
- " only one possibility
- return s:rgb_color(l:x, l:y, l:z)
- endif
-endfun
-
-fun! s:is_empty_or_none(str)
- return empty(a:str) || a:str ==? "NONE"
-endfun
-
-" returns the palette index to approximate the 'rrggbb' hex string
-fun! s:rgb(rgb)
- if s:is_empty_or_none(a:rgb)
- return "NONE"
- endif
- let l:r = ("0x" . strpart(a:rgb, 0, 2)) + 0
- let l:g = ("0x" . strpart(a:rgb, 2, 2)) + 0
- let l:b = ("0x" . strpart(a:rgb, 4, 2)) + 0
- return s:color(l:r, l:g, l:b)
-endfun
-
-fun! s:prefix_highlight_value_with(prefix, color)
- if s:is_empty_or_none(a:color)
- return "NONE"
- else
- return a:prefix . a:color
- endif
-endfun
-
-fun! s:remove_italic_attr(attr)
- let l:attr = join(filter(split(a:attr, ","), "v:val !=? 'italic'"), ",")
- if empty(l:attr)
- let l:attr = "NONE"
- endif
- return l:attr
-endfun
-
-" sets the highlighting for the given group
-fun! s:X(group, fg, bg, attr, lcfg, lcbg)
- if s:low_color
- let l:cmd = "hi ".a:group.
- \ " ctermfg=".s:prefix_highlight_value_with("", a:lcfg).
- \ " ctermbg=".s:prefix_highlight_value_with("", a:lcbg)
- else
- let l:cmd = "hi ".a:group.
- \ " guifg=".s:prefix_highlight_value_with("#", a:fg).
- \ " guibg=".s:prefix_highlight_value_with("#", a:bg)
- if !s:true_color
- let l:cmd = l:cmd.
- \ " ctermfg=".s:rgb(a:fg).
- \ " ctermbg=".s:rgb(a:bg)
- endif
- endif
-
- let l:attr = s:prefix_highlight_value_with("", a:attr)
-
- if exists("g:jellybeans_use_term_italics") && g:jellybeans_use_term_italics
- let l:cterm_attr = l:attr
- else
- let l:cterm_attr = s:remove_italic_attr(l:attr)
- endif
-
- if !exists("g:jellybeans_use_gui_italics") || g:jellybeans_use_gui_italics
- let l:gui_attr = l:attr
- else
- let l:gui_attr = s:remove_italic_attr(l:attr)
- endif
-
- let l:cmd = l:cmd." gui=".l:gui_attr." cterm=".l:cterm_attr
- exec l:cmd
-endfun
-" }}}
-
-call s:X("Normal","e8e8d3",s:background_color,"","White","")
-set background=dark
-
-call s:X("CursorLine","","1c1c1c","","",s:termBlack)
-call s:X("CursorColumn","","1c1c1c","","",s:termBlack)
-
-" Some of Terminal.app's default themes have a cursor color
-" too close to Jellybeans' preferred MatchParen background
-" color to be easily distinguishable. Other terminals tend
-" to use a brighter cursor color.
-"
-" Use a more distinct color in Terminal.app, and also in
-" low-color terminals if the preferred background color is
-" not available.
-if !has('gui_running') && $TERM_PROGRAM == "Apple_Terminal"
- let s:matchParenGuiFg = "dd0093"
- let s:matchParenGuiBg = "000000"
-else
- let s:matchParenGuiFg = "ffffff"
- let s:matchParenGuiBg = "556779"
-endif
-if s:termBlack != "Black"
- let s:matchParenTermFg = "Magenta"
- let s:matchParenTermBg = ""
-else
- let s:matchParenTermFg = ""
- let s:matchParenTermBg = s:termBlack
-endif
-call s:X("MatchParen",s:matchParenGuiFg,s:matchParenGuiBg,"bold",
-\ s:matchParenTermFg,s:matchParenTermBg)
-
-call s:X("TabLine","000000","b0b8c0","italic","",s:termBlack)
-call s:X("TabLineFill","9098a0","","","",s:termBlack)
-call s:X("TabLineSel","000000","f0f0f0","italic,bold",s:termBlack,"White")
-
-" Auto-completion
-call s:X("Pmenu","ffffff","606060","","White",s:termBlack)
-call s:X("PmenuSel","101010","eeeeee","",s:termBlack,"White")
-
-call s:X("Visual","","404040","","",s:termBlack)
-call s:X("Cursor",s:background_color,"b0d0f0","","","")
-
-call s:X("LineNr","605958",s:background_color,"NONE",s:termBlack,"")
-call s:X("CursorLineNr","ccc5c4","","NONE","White","")
-call s:X("Comment","888888","","italic","Grey","")
-call s:X("Todo","c7c7c7","","bold","White",s:termBlack)
-
-call s:X("StatusLine","000000","dddddd","italic","","White")
-call s:X("StatusLineNC","ffffff","403c41","italic","White","Black")
-call s:X("VertSplit","777777","403c41","",s:termBlack,s:termBlack)
-call s:X("WildMenu","f0a0c0","302028","","Magenta","")
-
-call s:X("Folded","a0a8b0","384048","italic",s:termBlack,"")
-call s:X("FoldColumn","535D66","1f1f1f","","",s:termBlack)
-call s:X("SignColumn","777777","333333","","",s:termBlack)
-call s:X("ColorColumn","","000000","","",s:termBlack)
-
-call s:X("Title","70b950","","bold","Green","")
-
-call s:X("Constant","cf6a4c","","","Red","")
-call s:X("Special","799d6a","","","Green","")
-call s:X("Delimiter","668799","","","Grey","")
-
-call s:X("String","99ad6a","","","Green","")
-call s:X("StringDelimiter","556633","","","DarkGreen","")
-
-call s:X("Identifier","c6b6ee","","","LightCyan","")
-call s:X("Structure","8fbfdc","","","LightCyan","")
-call s:X("Function","fad07a","","","Yellow","")
-call s:X("Statement","8197bf","","","DarkBlue","")
-call s:X("PreProc","8fbfdc","","","LightBlue","")
-
-hi! link Operator Structure
-hi! link Conceal Operator
-
-call s:X("Type","ffb964","","","Yellow","")
-call s:X("NonText","606060",s:background_color,"",s:termBlack,"")
-
-call s:X("SpecialKey","444444","1c1c1c","",s:termBlack,"")
-
-call s:X("Search","f0a0c0","302028","underline","Magenta","")
-
-call s:X("Directory","dad085","","","Yellow","")
-call s:X("ErrorMsg","","902020","","","DarkRed")
-hi! link Error ErrorMsg
-hi! link MoreMsg Special
-call s:X("Question","65C254","","","Green","")
-
-
-" Spell Checking
-
-call s:X("SpellBad","","902020","underline","","DarkRed")
-call s:X("SpellCap","","0000df","underline","","Blue")
-call s:X("SpellRare","","540063","underline","","DarkMagenta")
-call s:X("SpellLocal","","2D7067","underline","","Green")
-
-" Diff
-
-hi! link diffRemoved Constant
-hi! link diffAdded String
-
-" VimDiff
-
-call s:X("DiffAdd","D2EBBE","437019","","White","DarkGreen")
-call s:X("DiffDelete","40000A","700009","","DarkRed","DarkRed")
-call s:X("DiffChange","","2B5B77","","White","DarkBlue")
-call s:X("DiffText","8fbfdc","000000","reverse","Yellow","")
-
-" PHP
-
-hi! link phpFunctions Function
-call s:X("StorageClass","c59f6f","","","Red","")
-hi! link phpSuperglobal Identifier
-hi! link phpQuoteSingle StringDelimiter
-hi! link phpQuoteDouble StringDelimiter
-hi! link phpBoolean Constant
-hi! link phpNull Constant
-hi! link phpArrayPair Operator
-hi! link phpOperator Normal
-hi! link phpRelation Normal
-hi! link phpVarSelector Identifier
-
-" Python
-
-hi! link pythonOperator Statement
-
-" Ruby
-
-hi! link rubySharpBang Comment
-call s:X("rubyClass","447799","","","DarkBlue","")
-call s:X("rubyIdentifier","c6b6fe","","","Cyan","")
-hi! link rubyConstant Type
-hi! link rubyFunction Function
-
-call s:X("rubyInstanceVariable","c6b6fe","","","Cyan","")
-call s:X("rubySymbol","7697d6","","","Blue","")
-hi! link rubyGlobalVariable rubyInstanceVariable
-hi! link rubyModule rubyClass
-call s:X("rubyControl","7597c6","","","Blue","")
-
-hi! link rubyString String
-hi! link rubyStringDelimiter StringDelimiter
-hi! link rubyInterpolationDelimiter Identifier
-
-call s:X("rubyRegexpDelimiter","540063","","","Magenta","")
-call s:X("rubyRegexp","dd0093","","","DarkMagenta","")
-call s:X("rubyRegexpSpecial","a40073","","","Magenta","")
-
-call s:X("rubyPredefinedIdentifier","de5577","","","Red","")
-
-" Erlang
-
-hi! link erlangAtom rubySymbol
-hi! link erlangBIF rubyPredefinedIdentifier
-hi! link erlangFunction rubyPredefinedIdentifier
-hi! link erlangDirective Statement
-hi! link erlangNode Identifier
-
-" Elixir
-
-hi! link elixirAtom rubySymbol
-
-
-" JavaScript
-
-hi! link javaScriptValue Constant
-hi! link javaScriptRegexpString rubyRegexp
-hi! link javaScriptTemplateVar StringDelim
-hi! link javaScriptTemplateDelim Identifier
-hi! link javaScriptTemplateString String
-
-" CoffeeScript
-
-hi! link coffeeRegExp javaScriptRegexpString
-
-" Lua
-
-hi! link luaOperator Conditional
-
-" C
-
-hi! link cFormat Identifier
-hi! link cOperator Constant
-
-" Objective-C/Cocoa
-
-hi! link objcClass Type
-hi! link cocoaClass objcClass
-hi! link objcSubclass objcClass
-hi! link objcSuperclass objcClass
-hi! link objcDirective rubyClass
-hi! link objcStatement Constant
-hi! link cocoaFunction Function
-hi! link objcMethodName Identifier
-hi! link objcMethodArg Normal
-hi! link objcMessageName Identifier
-
-" Vimscript
-
-hi! link vimOper Normal
-
-" HTML
-
-hi! link htmlTag Statement
-hi! link htmlEndTag htmlTag
-hi! link htmlTagName htmlTag
-
-" XML
-
-hi! link xmlTag Statement
-hi! link xmlEndTag xmlTag
-hi! link xmlTagName xmlTag
-hi! link xmlEqual xmlTag
-hi! link xmlEntity Special
-hi! link xmlEntityPunct xmlEntity
-hi! link xmlDocTypeDecl PreProc
-hi! link xmlDocTypeKeyword PreProc
-hi! link xmlProcessingDelim xmlAttrib
-
-" Debugger.vim
-
-call s:X("DbgCurrent","DEEBFE","345FA8","","White","DarkBlue")
-call s:X("DbgBreakPt","","4F0037","","","DarkMagenta")
-
-" vim-indent-guides
-
-if !exists("g:indent_guides_auto_colors")
- let g:indent_guides_auto_colors = 0
-endif
-call s:X("IndentGuidesOdd","","232323","","","")
-call s:X("IndentGuidesEven","","1b1b1b","","","")
-
-" Plugins, etc.
-
-hi! link TagListFileName Directory
-call s:X("PreciseJumpTarget","B9ED67","405026","","White","Green")
-
-" Manual overrides for 256-color terminals. Dark colors auto-map badly.
-if !s:low_color
- hi StatusLineNC ctermbg=235
- hi Folded ctermbg=236
- hi DiffText ctermfg=81
- hi DbgBreakPt ctermbg=53
- hi IndentGuidesOdd ctermbg=235
- hi IndentGuidesEven ctermbg=234
-endif
-
-if !empty("s:overrides")
- fun! s:current_attr(group)
- let l:synid = synIDtrans(hlID(a:group))
- let l:attrs = []
- for l:attr in ["bold", "italic", "reverse", "standout", "underline", "undercurl"]
- if synIDattr(l:synid, l:attr, "gui") == 1
- call add(l:attrs, l:attr)
- endif
- endfor
- return join(l:attrs, ",")
- endfun
- fun! s:current_color(group, what, mode)
- let l:color = synIDattr(synIDtrans(hlID(a:group)), a:what, a:mode)
- if l:color == -1
- return ""
- else
- return substitute(l:color, "^#", "", "")
- endif
- endfun
- fun! s:load_color_def(group, def)
- call s:X(a:group, get(a:def, "guifg", s:current_color(a:group, "fg", "gui")),
- \ get(a:def, "guibg", s:current_color(a:group, "bg", "gui")),
- \ get(a:def, "attr", s:current_attr(a:group)),
- \ get(a:def, "ctermfg", s:current_color(a:group, "fg", "cterm")),
- \ get(a:def, "ctermbg", s:current_color(a:group, "bg", "cterm")))
- if !s:low_color
- for l:prop in ["ctermfg", "ctermbg"]
- let l:override_key = "256".l:prop
- if has_key(a:def, l:override_key)
- exec "hi ".a:group." ".l:prop."=".a:def[l:override_key]
- endif
- endfor
- endif
- endfun
- fun! s:load_colors(defs)
- for [l:group, l:def] in items(a:defs)
- if l:group == "background"
- call s:load_color_def("LineNr", l:def)
- call s:load_color_def("NonText", l:def)
- call s:load_color_def("Normal", l:def)
- else
- call s:load_color_def(l:group, l:def)
- endif
- unlet l:group
- unlet l:def
- endfor
- endfun
- call s:load_colors(s:overrides)
- delf s:load_colors
- delf s:load_color_def
- delf s:current_color
- delf s:current_attr
-endif
-
-" delete functions {{{
-delf s:X
-delf s:remove_italic_attr
-delf s:prefix_highlight_value_with
-delf s:rgb
-delf s:is_empty_or_none
-delf s:color
-delf s:rgb_color
-delf s:rgb_level
-delf s:rgb_number
-delf s:grey_color
-delf s:grey_level
-delf s:grey_number
-" }}}
diff --git a/.config/vim/colors/moonfly.vim b/.config/vim/colors/moonfly.vim
deleted file mode 100644
index 3f974cb..0000000
--- a/.config/vim/colors/moonfly.vim
+++ /dev/null
@@ -1,963 +0,0 @@
-" Dark Vim/Neovim color scheme.
-"
-" URL: github.com/bluz71/vim-moonfly-colors
-" License: MIT (https://opensource.org/licenses/MIT)
-
-" Clear highlights and reset syntax only when changing colorschemes.
-if exists('g:colors_name')
- highlight clear
- if exists('syntax_on')
- syntax reset
- endif
-endif
-let g:colors_name='moonfly'
-
-" By default do not color the cursor.
-let g:moonflyCursorColor = get(g:, 'moonflyCursorColor', 0)
-
-" By default do use italics in GUI versions of Vim.
-let g:moonflyItalics = get(g:, 'moonflyItalics', 1)
-
-" By default do not use a customized 'NormalFloat' highlight group (for Neovim
-" floating windows).
-let g:moonflyNormalFloat = get(g:, 'moonflyNormalFloat', 0)
-
-" By default use the moonfly color palette in the `:terminal`
-let g:moonflyTerminalColors = get(g:, 'moonflyTerminalColors', 1)
-
-" By default do not use a transparent background in GUI versions of Vim.
-let g:moonflyTransparent = get(g:, 'moonflyTransparent', 0)
-
-" By default do use undercurls in GUI versions of Vim, including terminal Vim
-" with termguicolors set.
-let g:moonflyUndercurls = get(g:, 'moonflyUndercurls', 1)
-
-" By default do not underline matching parentheses.
-let g:moonflyUnderlineMatchParen = get(g:, 'moonflyUnderlineMatchParen', 0)
-
-" By default do display vertical split columns.
-let g:moonflyVertSplits = get(g:, 'moonflyVertSplits', 1)
-
-" Background and foreground
-let s:black = {"hex": '#080808', "term": 232}
-let s:white = {"hex": '#c6c6c6', "term": 251}
-" Variations of charcoal-grey
-let s:grey0 = {"hex": '#323437', "term": 0 }
-let s:grey254 = {"hex": '#e4e4e4', "term": 254}
-let s:grey249 = {"hex": '#b2b2b2', "term": 249}
-let s:grey247 = {"hex": '#9e9e9e', "term": 247}
-let s:grey246 = {"hex": '#949494', "term": 246}
-let s:grey244 = {"hex": '#808080', "term": 244}
-let s:grey241 = {"hex": '#626262', "term": 241}
-let s:grey237 = {"hex": '#3a3a3a', "term": 237}
-let s:grey236 = {"hex": '#303030', "term": 236}
-let s:grey235 = {"hex": '#262626', "term": 235}
-let s:grey234 = {"hex": '#1c1c1c', "term": 234}
-let s:grey233 = {"hex": '#121212', "term": 233}
-" Core theme colors
-let s:wheat = {"hex": '#bfbf97', "term": 11}
-let s:yellow = {"hex": '#e3c78a', "term": 3 }
-let s:orange = {"hex": '#de935f', "term": 7 }
-let s:coral = {"hex": '#f09479', "term": 8 }
-let s:lime = {"hex": '#85dc85', "term": 14}
-let s:green = {"hex": '#8cc85f', "term": 2 }
-let s:emerald = {"hex": '#36c692', "term": 10}
-let s:blue = {"hex": '#80a0ff', "term": 4 }
-let s:sky = {"hex": '#74b2ff', "term": 12}
-let s:turquoise = {"hex": '#79dac8', "term": 6 }
-let s:purple = {"hex": '#ae81ff', "term": 13}
-let s:cranberry = {"hex": '#e2637f', "term": 15}
-let s:violet = {"hex": '#d183e8', "term": 5 }
-let s:crimson = {"hex": '#ff5189', "term": 9 }
-let s:red = {"hex": '#ff5454', "term": 1 }
-" Extra colors
-let s:spring = {"hex": '#00875f', "term": 29}
-
-" Specify the colors used by the inbuilt terminal of Neovim and Vim
-if g:moonflyTerminalColors
- if has('nvim')
- let g:terminal_color_0 = s:grey0.hex
- let g:terminal_color_1 = s:red.hex
- let g:terminal_color_2 = s:green.hex
- let g:terminal_color_3 = s:yellow.hex
- let g:terminal_color_4 = s:blue.hex
- let g:terminal_color_5 = s:violet.hex
- let g:terminal_color_6 = s:turquoise.hex
- let g:terminal_color_7 = s:white.hex
- let g:terminal_color_8 = s:grey246.hex
- let g:terminal_color_9 = s:crimson.hex
- let g:terminal_color_10 = s:emerald.hex
- let g:terminal_color_11 = s:wheat.hex
- let g:terminal_color_12 = s:sky.hex
- let g:terminal_color_13 = s:purple.hex
- let g:terminal_color_14 = s:lime.hex
- let g:terminal_color_15 = s:grey254.hex
- else
- let g:terminal_ansi_colors = [
- \ s:grey0.hex, s:red.hex, s:green.hex, s:yellow.hex,
- \ s:blue.hex, s:violet.hex, s:turquoise.hex, s:white.hex,
- \ s:grey246.hex, s:crimson.hex, s:emerald.hex, s:wheat.hex,
- \ s:sky.hex, s:purple.hex, s:lime.hex, s:grey254.hex
- \]
- endif
-endif
-
-" Background and text
-if g:moonflyTransparent
- exec 'highlight Normal ctermbg=' . s:black.term . ' ctermfg=' . s:white.term . ' guibg=NONE guifg=' . s:white.hex
-else
- exec 'highlight Normal ctermbg=' . s:black.term . ' ctermfg=' . s:white.term . ' guibg=' . s:black.hex . ' guifg=' . s:white.hex
-endif
-
-" Custom moonfly highlight groups
-exec 'highlight MoonflyReset ctermfg=fg guifg=fg'
-exec 'highlight MoonflyVisual ctermbg=' . s:grey0.term . ' guibg=' . s:grey0.hex
-exec 'highlight MoonflyWhite ctermfg=' . s:white.term . ' guifg=' . s:white.hex
-exec 'highlight MoonflyGrey0 ctermfg=' . s:grey0.term . ' guifg=' . s:grey0.hex
-exec 'highlight MoonflyGrey254 ctermfg=' . s:grey254.term . ' guifg=' . s:grey254.hex
-exec 'highlight MoonflyGrey249 ctermfg=' . s:grey249.term . ' guifg=' . s:grey249.hex
-exec 'highlight MoonflyGrey247 ctermfg=' . s:grey247.term . ' guifg=' . s:grey247.hex
-exec 'highlight MoonflyGrey246 ctermfg=' . s:grey246.term . ' guifg=' . s:grey246.hex
-exec 'highlight MoonflyGrey241 ctermfg=' . s:grey241.term . ' guifg=' . s:grey241.hex
-exec 'highlight MoonflyGrey236 ctermfg=' . s:grey236.term . ' guifg=' . s:grey236.hex
-exec 'highlight MoonflyWheat ctermfg=' . s:wheat.term . ' guifg=' . s:wheat.hex
-exec 'highlight MoonflyYellow ctermfg=' . s:yellow.term . ' guifg=' . s:yellow.hex
-exec 'highlight MoonflyOrange ctermfg=' . s:orange.term . ' guifg=' . s:orange.hex
-exec 'highlight MoonflyCoral ctermfg=' . s:coral.term . ' guifg=' . s:coral.hex
-exec 'highlight MoonflyLime ctermfg=' . s:lime.term . ' guifg=' . s:lime.hex
-exec 'highlight MoonflyGreen ctermfg=' . s:green.term . ' guifg=' . s:green.hex
-exec 'highlight MoonflyEmerald ctermfg=' . s:emerald.term . ' guifg=' . s:emerald.hex
-exec 'highlight MoonflyBlue ctermfg=' . s:blue.term . ' guifg=' . s:blue.hex
-exec 'highlight MoonflySky ctermfg=' . s:sky.term . ' guifg=' . s:sky.hex
-exec 'highlight MoonflyTurquoise ctermfg=' . s:turquoise.term . ' guifg=' . s:turquoise.hex
-exec 'highlight MoonflyPurple ctermfg=' . s:purple.term . ' guifg=' . s:purple.hex
-exec 'highlight MoonflyCranberry ctermfg=' . s:cranberry.term . ' guifg=' . s:cranberry.hex
-exec 'highlight MoonflyViolet ctermfg=' . s:violet.term . ' guifg=' . s:violet.hex
-exec 'highlight MoonflyCrimson ctermfg=' . s:crimson.term . ' guifg=' . s:crimson.hex
-exec 'highlight MoonflyRed ctermfg=' . s:red.term . ' guifg=' . s:red.hex
-exec 'highlight MoonflyWhiteAlert ctermbg=bg ctermfg=' . s:white.term . ' guibg=bg guifg=' . s:white.hex
-exec 'highlight MoonflyYellowAlert ctermbg=bg ctermfg=' . s:yellow.term . ' guibg=bg guifg=' . s:yellow.hex
-exec 'highlight MoonflyCoralAlert ctermbg=bg ctermfg=' . s:coral.term . ' guibg=bg guifg=' . s:coral.hex
-exec 'highlight MoonflyEmeraldAlert ctermbg=bg ctermfg=' . s:emerald.term . ' guibg=bg guifg=' . s:emerald.hex
-exec 'highlight MoonflyPurpleAlert ctermbg=bg ctermfg=' . s:purple.term . ' guibg=bg guifg=' . s:purple.hex
-exec 'highlight MoonflySkyAlert ctermbg=bg ctermfg=' . s:sky.term . ' guibg=bg guifg=' . s:sky.hex
-exec 'highlight MoonflyRedAlert ctermbg=bg ctermfg=' . s:red.term . ' guibg=bg guifg=' . s:red.hex
-
-" Color of mode text, -- INSERT --
-exec 'highlight ModeMsg ctermfg=' . s:grey247.term . ' guifg=' . s:grey247.hex . ' gui=none'
-
-" Comments
-if g:moonflyItalics
- exec 'highlight Comment ctermfg=' . s:grey246.term . ' guifg=' . s:grey246.hex . ' gui=italic'
-else
- exec 'highlight Comment ctermfg=' . s:grey246.term . ' guifg=' . s:grey246.hex
-endif
-
-" Functions
-highlight! link Function MoonflySky
-
-" Strings
-highlight! link String MoonflyWheat
-
-" Booleans
-highlight! link Boolean MoonflyCoral
-
-" Identifiers
-exec 'highlight Identifier ctermfg=' . s:turquoise.term . ' cterm=none guifg=' . s:turquoise.hex
-
-" Color of titles
-exec 'highlight Title ctermfg=' . s:orange.term . ' guifg=' . s:orange.hex . ' gui=none'
-
-" const, static
-highlight! link StorageClass MoonflyCoral
-
-" void, intptr_t
-exec 'highlight Type ctermfg=' . s:emerald.term . ' guifg=' . s:emerald.hex . ' gui=none'
-
-" Numbers
-highlight! link Constant MoonflyOrange
-
-" Character constants
-highlight! link Character MoonflyPurple
-
-" Exceptions
-highlight! link Exception MoonflyCrimson
-
-" ifdef/endif
-highlight! link PreProc MoonflyCranberry
-
-" case in switch statement
-highlight! link Label MoonflyTurquoise
-
-" end-of-line '$', end-of-file '~'
-exec 'highlight NonText ctermfg=' . s:grey241.term . ' guifg=' . s:grey241.hex . ' gui=none'
-
-" sizeof
-highlight! link Operator MoonflyCranberry
-
-" for, while
-highlight! link Repeat MoonflyViolet
-
-" Search
-exec 'highlight Search ctermbg=bg ctermfg=' . s:coral.term . ' cterm=reverse guibg=bg guifg=' . s:coral.hex . ' gui=reverse'
-exec 'highlight IncSearch ctermbg=bg ctermfg=' . s:yellow.term . ' guibg=bg guifg=' . s:yellow.hex
-
-" '\n' sequences
-highlight! link Special MoonflyCranberry
-
-" if, else
-exec 'highlight Statement ctermfg=' . s:violet.term . ' guifg=' . s:violet.hex . ' gui=none'
-
-" struct, union, enum, typedef
-highlight! link Structure MoonflyBlue
-
-" Status, split and tab lines
-exec 'highlight StatusLine ctermbg=' . s:grey236.term . ' ctermfg=' . s:white.term . ' cterm=none guibg=' . s:grey236.hex . ' guifg=' . s:white.hex . ' gui=none'
-exec 'highlight StatusLineNC ctermbg=' . s:grey236.term . ' ctermfg=' . s:grey247.term . ' cterm=none guibg=' . s:grey236.hex . ' guifg=' . s:grey247.hex . ' gui=none'
-exec 'highlight Tabline ctermbg=' . s:grey236.term . ' ctermfg=' . s:grey247.term . ' cterm=none guibg=' . s:grey236.hex . ' guifg=' . s:grey247.hex . ' gui=none'
-exec 'highlight TablineSel ctermbg=' . s:grey236.term . ' ctermfg=' . s:blue.term . ' cterm=none guibg=' . s:grey236.hex . ' guifg=' . s:blue.hex . ' gui=none'
-exec 'highlight TablineFill ctermbg=' . s:grey236.term . ' ctermfg=' . s:grey236.term . ' cterm=none guibg=' . s:grey236.hex . ' guifg=' . s:grey236.hex . ' gui=none'
-exec 'highlight StatusLineTerm ctermbg=' . s:grey236.term . ' ctermfg=' . s:white.term . ' cterm=none guibg=' . s:grey236.hex . ' guifg=' . s:white.hex . ' gui=none'
-exec 'highlight StatusLineTermNC ctermbg=' . s:grey236.term . ' ctermfg=' . s:grey247.term . ' cterm=none guibg=' . s:grey236.hex . ' guifg=' . s:grey247.hex . ' gui=none'
-if g:moonflyVertSplits
- exec 'highlight VertSplit ctermbg=' . s:grey236.term . ' ctermfg=' . s:grey236.term . ' cterm=none guibg=' . s:grey236.hex . ' guifg=' . s:grey236.hex . ' gui=none'
-else
- exec 'highlight VertSplit ctermbg=' . s:black.term . ' ctermfg=' . s:black.term . ' cterm=none guibg=' . s:black.hex . ' guifg=' . s:black.hex . ' gui=none'
-end
-
-" Visual selection
-highlight! link Visual MoonflyVisual
-exec 'highlight VisualNOS ctermbg=' . s:grey0.term . ' ctermfg=fg cterm=none guibg=' . s:grey0.hex . ' guifg=fg gui=none'
-exec 'highlight VisualInDiff ctermbg=' . s:grey0.term . ' ctermfg=' . s:white.term . ' guibg=' . s:grey0.hex . ' guifg=' . s:white.hex
-
-" Errors, warnings and whitespace-eol
-exec 'highlight Error ctermbg=bg ctermfg=' . s:red.term . ' guibg=bg guifg=' . s:red.hex
-exec 'highlight ErrorMsg ctermbg=bg ctermfg=' . s:red.term . ' guibg=bg guifg=' . s:red.hex
-exec 'highlight WarningMsg ctermbg=bg ctermfg=' . s:orange.term . ' guibg=bg guifg=' . s:orange.hex
-
-" Auto-text-completion menu
-exec 'highlight Pmenu ctermbg=' . s:grey235.term . ' ctermfg=fg guibg=' . s:grey235.hex . ' guifg=fg'
-exec 'highlight PmenuSel ctermbg=' . s:spring.term . ' ctermfg=fg guibg=' . s:spring.hex . ' guifg=fg'
-exec 'highlight PmenuSbar ctermbg=' . s:grey235.term . ' guibg=' . s:grey235.hex
-exec 'highlight PmenuThumb ctermbg=' . s:grey244.term . ' guibg=' . s:grey244.hex
-exec 'highlight WildMenu ctermbg=' . s:spring.term . ' ctermfg=fg guibg=' . s:spring.hex . ' guifg=fg'
-
-" Spelling errors
-if g:moonflyUndercurls
- exec 'highlight SpellBad ctermbg=NONE ctermfg=' . s:red.term . ' cterm=underline guibg=NONE gui=undercurl guisp=' . s:red.hex
- exec 'highlight SpellCap ctermbg=NONE ctermfg=' . s:blue.term . ' cterm=underline guibg=NONE gui=undercurl guisp=' . s:blue.hex
- exec 'highlight SpellRare ctermbg=NONE ctermfg=' . s:yellow.term . ' cterm=underline guibg=NONE gui=undercurl guisp=' . s:yellow.hex
- exec 'highlight SpellLocal ctermbg=NONE ctermfg=' . s:sky.term . ' cterm=underline guibg=NONE gui=undercurl guisp=' . s:sky.hex
-else
- exec 'highlight SpellBad ctermbg=NONE ctermfg=' . s:red.term . ' cterm=underline guibg=NONE guifg=' . s:red.hex . ' gui=underline guisp=' . s:red.hex
- exec 'highlight SpellCap ctermbg=NONE ctermfg=' . s:blue.term . ' cterm=underline guibg=NONE guifg=' . s:blue.hex . ' gui=underline guisp=' . s:blue.hex
- exec 'highlight SpellRare ctermbg=NONE ctermfg=' . s:yellow.term . ' cterm=underline guibg=NONE guifg=' . s:yellow.hex . ' gui=underline guisp=' . s:yellow.hex
- exec 'highlight SpellLocal ctermbg=NONE ctermfg=' . s:sky.term . ' cterm=underline guibg=NONE guifg=' . s:sky.hex . ' gui=underline guisp=' . s:sky.hex
-endif
-
-" Misc
-exec 'highlight Question ctermfg=' . s:lime.term . ' guifg=' . s:lime.hex . ' gui=none'
-exec 'highlight MoreMsg ctermfg=' . s:red.term . ' guifg=' . s:red.hex . ' gui=none'
-exec 'highlight LineNr ctermbg=bg ctermfg=' . s:grey241.term . ' guibg=bg guifg=' . s:grey241.hex . ' gui=none'
-if g:moonflyCursorColor
- exec 'highlight Cursor ctermfg=bg ctermbg=' . s:blue.term . ' guifg=bg guibg=' . s:blue.hex
-else
- exec 'highlight Cursor ctermfg=bg ctermbg=' . s:grey247.term . ' guifg=bg guibg=' . s:grey247.hex
-endif
-exec 'highlight lCursor ctermfg=bg ctermbg=' . s:grey247.term . ' guifg=bg guibg=' . s:grey247.hex
-exec 'highlight CursorLineNr ctermbg=' . s:grey234.term . ' ctermfg=' . s:blue.term . ' cterm=none guibg=' . s:grey234.hex . ' guifg=' . s:blue.hex . ' gui=none'
-exec 'highlight CursorColumn ctermbg=' . s:grey234.term . ' cterm=none guibg=' . s:grey234.hex
-exec 'highlight CursorLine ctermbg=' . s:grey234.term . ' cterm=none guibg=' . s:grey234.hex
-exec 'highlight Folded ctermbg=' . s:grey234.term . ' ctermfg=' . s:lime.term . ' guibg=' . s:grey234.hex . ' guifg='. s:lime.hex
-exec 'highlight FoldColumn ctermbg=' . s:grey236.term . ' ctermfg=' . s:lime.term . ' guibg=' . s:grey236.hex . ' guifg=' . s:lime.hex
-exec 'highlight SignColumn ctermbg=bg ctermfg=' . s:lime.term . ' guibg=bg guifg=' . s:lime.hex
-exec 'highlight Todo ctermbg=' . s:yellow.term . ' ctermfg=' . s:black.term . ' guibg=' . s:yellow.hex . ' guifg=' . s:black.hex
-exec 'highlight SpecialKey ctermbg=bg ctermfg=' . s:sky.term . ' guibg=bg guifg=' . s:sky.hex
-if g:moonflyUnderlineMatchParen
- exec 'highlight MatchParen ctermbg=bg cterm=underline guibg=bg gui=underline'
-else
- highlight! link MatchParen MoonflyVisual
-endif
-exec 'highlight Ignore ctermfg=' . s:sky.term . ' guifg=' . s:sky.hex
-exec 'highlight Underlined ctermfg=' . s:emerald.term . ' cterm=none guifg=' . s:emerald.hex . ' gui=none'
-exec 'highlight QuickFixLine ctermbg=' . s:grey237.term . ' cterm=none guibg=' . s:grey237.hex
-highlight! link Delimiter MoonflyWhite
-highlight! link qfFileName MoonflyEmerald
-
-" Color column (after line 80)
-exec 'highlight ColorColumn ctermbg=' . s:grey233.term . ' guibg=' . s:grey233.hex
-
-" Conceal color
-exec 'highlight Conceal ctermbg=NONE ctermfg=' . s:grey249.term . ' guibg=NONE guifg=' . s:grey249.hex
-
-" Neovim only highlight groups
-if has('nvim')
- exec 'highlight Whitespace ctermfg=' . s:grey235.term . ' guifg=' . s:grey235.hex
- exec 'highlight TermCursor ctermbg=' . s:grey247.term . ' ctermfg=bg cterm=none guibg=' . s:grey247.hex . ' guifg=bg gui=none'
- if g:moonflyNormalFloat
- exec 'highlight NormalFloat ctermbg=bg ctermfg=' . s:grey249.term . ' guibg=bg guifg=' . s:grey249.hex
- else
- exec 'highlight NormalFloat ctermbg=' . s:grey234.term . ' ctermfg=fg guibg=' . s:grey234.hex . ' guifg=fg'
- endif
- exec 'highlight FloatBorder ctermbg=bg ctermfg=' . s:grey236.term . ' guibg=bg guifg=' . s:grey236.hex
-
- " Neovim Treesitter
- highlight! link TSAnnotation MoonflyViolet
- highlight! link TSAttribute MoonflySky
- highlight! link TSConstant MoonflyTurquoise
- highlight! link TSConstBuiltin MoonflyGreen
- highlight! link TSConstMacro MoonflyViolet
- highlight! link TSConstructor MoonflyEmerald
- highlight! link TSFuncBuiltin MoonflySky
- highlight! link TSFuncMacro MoonflySky
- highlight! link TSInclude MoonflyCranberry
- highlight! link TSKeywordOperator MoonflyViolet
- highlight! link TSNamespace MoonflyBlue
- highlight! link TSParameter MoonflyWhite
- highlight! link TSPunctSpecial MoonflyCranberry
- highlight! link TSSymbol MoonflyPurple
- highlight! link TSTag MoonflyBlue
- highlight! link TSTagDelimiter MoonflyLime
- highlight! link TSVariableBuiltin MoonflyLime
- highlight! link bashTSParameter MoonflyTurquoise
- highlight! link cssTSPunctDelimiter MoonflyCranberry
- highlight! link cssTSType MoonflyBlue
- highlight! link scssTSPunctDelimiter MoonflyCranberry
- highlight! link scssTSType MoonflyBlue
- highlight! link yamlTSField MoonflySky
- highlight! link yamlTSPunctDelimiter MoonflyCranberry
-endif
-
-" C/C++
-highlight! link cDefine MoonflyViolet
-highlight! link cPreCondit MoonflyViolet
-highlight! link cStatement MoonflyViolet
-highlight! link cStructure MoonflyCoral
-highlight! link cppAccess MoonflyLime
-highlight! link cppCast MoonflyTurquoise
-highlight! link cppCustomClass MoonflyTurquoise
-highlight! link cppExceptions MoonflyLime
-highlight! link cppModifier MoonflyViolet
-highlight! link cppOperator MoonflyGreen
-highlight! link cppStatement MoonflyTurquoise
-highlight! link cppSTLconstant MoonflyBlue
-highlight! link cppSTLnamespace MoonflyBlue
-highlight! link cppStructure MoonflyViolet
-
-" C#
-highlight! link csModifier MoonflyLime
-highlight! link csPrecondit MoonflyViolet
-highlight! link csStorage MoonflyViolet
-highlight! link csXmlTag MoonflyBlue
-
-" Clojure
-highlight! link clojureDefine MoonflyViolet
-highlight! link clojureKeyword MoonflyPurple
-highlight! link clojureMacro MoonflyOrange
-highlight! link clojureParen MoonflyBlue
-highlight! link clojureSpecial MoonflySky
-
-" CoffeeScript
-highlight! link coffeeConstant MoonflyEmerald
-highlight! link coffeeGlobal MoonflyTurquoise
-highlight! link coffeeKeyword MoonflyOrange
-highlight! link coffeeObjAssign MoonflySky
-highlight! link coffeeSpecialIdent MoonflyLime
-highlight! link coffeeSpecialVar MoonflyBlue
-highlight! link coffeeStatement MoonflyCoral
-
-" Crystal
-highlight! link crystalAccess MoonflyYellow
-highlight! link crystalAttribute MoonflySky
-highlight! link crystalBlockParameter MoonflyGreen
-highlight! link crystalClass MoonflyOrange
-highlight! link crystalDefine MoonflyViolet
-highlight! link crystalExceptional MoonflyCoral
-highlight! link crystalInstanceVariable MoonflyLime
-highlight! link crystalModule MoonflyBlue
-highlight! link crystalPseudoVariable MoonflyGreen
-highlight! link crystalSharpBang MoonflyGrey247
-highlight! link crystalStringDelimiter MoonflyWheat
-highlight! link crystalSymbol MoonflyPurple
-
-" CSS/SCSS
-highlight! link cssAtRule MoonflyViolet
-highlight! link cssAttr MoonflyTurquoise
-highlight! link cssBraces MoonflyReset
-highlight! link cssClassName MoonflyEmerald
-highlight! link cssClassNameDot MoonflyViolet
-highlight! link cssColor MoonflyTurquoise
-highlight! link cssIdentifier MoonflySky
-highlight! link cssProp MoonflyTurquoise
-highlight! link cssTagName MoonflyBlue
-highlight! link cssUnitDecorators MoonflyWheat
-highlight! link cssValueLength MoonflyPurple
-highlight! link cssValueNumber MoonflyPurple
-highlight! link sassId MoonflyBlue
-highlight! link sassIdChar MoonflyViolet
-highlight! link sassMedia MoonflyViolet
-highlight! link scssSelectorName MoonflyBlue
-
-" Dart
-highlight! link dartMetadata MoonflyLime
-highlight! link dartStorageClass MoonflyViolet
-highlight! link dartTypedef MoonflyViolet
-
-" Elixir
-highlight! link eelixirDelimiter MoonflyCrimson
-highlight! link elixirAtom MoonflyPurple
-highlight! link elixirBlockDefinition MoonflyViolet
-highlight! link elixirDefine MoonflyViolet
-highlight! link elixirDocTest MoonflyGrey247
-highlight! link elixirExUnitAssert MoonflyLime
-highlight! link elixirExUnitMacro MoonflySky
-highlight! link elixirKernelFunction MoonflyGreen
-highlight! link elixirKeyword MoonflyOrange
-highlight! link elixirModuleDefine MoonflyBlue
-highlight! link elixirPrivateDefine MoonflyViolet
-highlight! link elixirStringDelimiter MoonflyWheat
-highlight! link elixirVariable MoonflyTurquoise
-
-" Elm
-highlight! link elmLetBlockDefinition MoonflyLime
-highlight! link elmTopLevelDecl MoonflyCoral
-highlight! link elmType MoonflySky
-
-" Go
-highlight! link goBuiltins MoonflySky
-highlight! link goConditional MoonflyViolet
-highlight! link goDeclType MoonflyGreen
-highlight! link goDirective MoonflyCranberry
-highlight! link goFloats MoonflyPurple
-highlight! link goFunction MoonflyBlue
-highlight! link goFunctionCall MoonflySky
-highlight! link goImport MoonflyCranberry
-highlight! link goLabel MoonflyYellow
-highlight! link goMethod MoonflySky
-highlight! link goMethodCall MoonflySky
-highlight! link goPackage MoonflyViolet
-highlight! link goSignedInts MoonflyEmerald
-highlight! link goStruct MoonflyCoral
-highlight! link goStructDef MoonflyCoral
-highlight! link goUnsignedInts MoonflyPurple
-
-" Haskell
-highlight! link haskellDecl MoonflyOrange
-highlight! link haskellDeclKeyword MoonflyOrange
-highlight! link haskellIdentifier MoonflyTurquoise
-highlight! link haskellLet MoonflySky
-highlight! link haskellOperators MoonflyCranberry
-highlight! link haskellType MoonflySky
-highlight! link haskellWhere MoonflyViolet
-
-" HTML
-highlight! link htmlArg MoonflyTurquoise
-highlight! link htmlLink MoonflyGreen
-highlight! link htmlH1 MoonflyCranberry
-highlight! link htmlH2 MoonflyOrange
-highlight! link htmlEndTag MoonflyPurple
-highlight! link htmlTag MoonflyLime
-highlight! link htmlTagN MoonflyBlue
-highlight! link htmlTagName MoonflyBlue
-highlight! link htmlUnderline MoonflyWhite
-if g:moonflyItalics
- exec 'highlight htmlBoldItalic ctermbg=' . s:black.term . ' ctermfg=' . s:coral.term . ' guibg=' . s:black.hex . ' guifg=' . s:coral.hex . ' gui=italic'
- exec 'highlight htmlBoldUnderlineItalic ctermbg=' . s:black.term . ' ctermfg=' . s:coral.term . ' guibg=' . s:black.hex . ' guifg=' . s:coral.hex . ' gui=italic'
- exec 'highlight htmlItalic ctermfg=' . s:grey247.term . ' guifg=' . s:grey247.hex . ' gui=italic'
- exec 'highlight htmlUnderlineItalic ctermbg=' . s:black.term . ' ctermfg=' . s:grey247.term . ' guibg=' . s:black.hex . ' guifg=' . s:grey247.hex . ' gui=italic'
-else
- exec 'highlight htmlBoldItalic ctermbg=' . s:black.term . ' ctermfg=' . s:coral.term . ' cterm=none guibg=' . s:black.hex . ' guifg=' . s:coral.hex ' gui=none'
- exec 'highlight htmlBoldUnderlineItalic ctermbg=' . s:black.term . ' ctermfg=' . s:coral.term . ' guibg=' . s:black.hex . ' guifg=' . s:coral.hex
- exec 'highlight htmlItalic ctermfg=' . s:grey247.term . ' cterm=none guifg=' . s:grey247.hex ' gui=none'
- exec 'highlight htmlUnderlineItalic ctermbg=' . s:black.term . ' ctermfg=' . s:grey247.term . ' guibg=' . s:black.hex . ' guifg=' . s:grey247.hex
-endif
-
-" Java
-highlight! link javaAnnotation MoonflyLime
-highlight! link javaBraces MoonflyWhite
-highlight! link javaClassDecl MoonflyYellow
-highlight! link javaCommentTitle MoonflyGrey247
-highlight! link javaConstant MoonflySky
-highlight! link javaDebug MoonflySky
-highlight! link javaMethodDecl MoonflyYellow
-highlight! link javaOperator MoonflyCrimson
-highlight! link javaScopeDecl MoonflyViolet
-highlight! link javaStatement MoonflyTurquoise
-
-" JavaScript, 'pangloss/vim-javascript' plugin
-highlight! link jsClassDefinition MoonflyEmerald
-highlight! link jsClassKeyword MoonflyOrange
-highlight! link jsFrom MoonflyCoral
-highlight! link jsFuncBlock MoonflyTurquoise
-highlight! link jsFuncCall MoonflySky
-highlight! link jsFunction MoonflyLime
-highlight! link jsGlobalObjects MoonflyEmerald
-highlight! link jsModuleAs MoonflyCoral
-highlight! link jsObjectKey MoonflySky
-highlight! link jsObjectValue MoonflyEmerald
-highlight! link jsOperator MoonflyViolet
-highlight! link jsStorageClass MoonflyLime
-highlight! link jsTemplateBraces MoonflyCranberry
-highlight! link jsTemplateExpression MoonflyTurquoise
-highlight! link jsThis MoonflyGreen
-
-" JSX, 'MaxMEllon/vim-jsx-pretty' plugin
-highlight! link jsxAttrib MoonflyLime
-highlight! link jsxClosePunct MoonflyPurple
-highlight! link jsxComponentName MoonflyBlue
-highlight! link jsxOpenPunct MoonflyLime
-highlight! link jsxTagName MoonflyBlue
-
-" Lua
-highlight! link luaBraces MoonflyCranberry
-highlight! link luaBuiltin MoonflyGreen
-highlight! link luaFuncCall MoonflySky
-highlight! link luaSpecialTable MoonflySky
-
-" Markdown, 'tpope/vim-markdown' plugin
-highlight! link markdownBold MoonflyYellow
-highlight! link markdownCode MoonflyWheat
-highlight! link markdownCodeDelimiter MoonflyWheat
-highlight! link markdownError NormalNC
-highlight! link markdownH1 MoonflyOrange
-highlight! link markdownHeadingRule MoonflyBlue
-highlight! link markdownItalic MoonflyViolet
-highlight! link markdownUrl MoonflyPurple
-
-" Markdown, 'plasticboy/vim-markdown' plugin
-highlight! link mkdDelimiter MoonflyWhite
-highlight! link mkdLineBreak NormalNC
-highlight! link mkdListItem MoonflyBlue
-highlight! link mkdURL MoonflyPurple
-
-" PHP
-highlight! link phpClass MoonflyEmerald
-highlight! link phpClasses MoonflyBlue
-highlight! link phpFunction MoonflySky
-highlight! link phpParent MoonflyReset
-highlight! link phpType MoonflyViolet
-
-" PureScript
-highlight! link purescriptClass MoonflyOrange
-highlight! link purescriptModuleParams MoonflyCoral
-
-" Python
-highlight! link pythonBuiltin MoonflyBlue
-highlight! link pythonClassVar MoonflyGreen
-highlight! link pythonCoding MoonflySky
-highlight! link pythonImport MoonflyCranberry
-highlight! link pythonOperator MoonflyViolet
-highlight! link pythonRun MoonflySky
-highlight! link pythonStatement MoonflyViolet
-
-" Ruby
-highlight! link erubyDelimiter MoonflyCrimson
-highlight! link rubyAccess MoonflyYellow
-highlight! link rubyAssertion MoonflySky
-highlight! link rubyAttribute MoonflySky
-highlight! link rubyBlockParameter MoonflyGreen
-highlight! link rubyCallback MoonflySky
-highlight! link rubyDefine MoonflyViolet
-highlight! link rubyEntities MoonflySky
-highlight! link rubyExceptional MoonflyCoral
-highlight! link rubyGemfileMethod MoonflySky
-highlight! link rubyInstanceVariable MoonflyTurquoise
-highlight! link rubyInterpolationDelimiter MoonflyCranberry
-highlight! link rubyMacro MoonflySky
-highlight! link rubyModule MoonflyBlue
-highlight! link rubyPseudoVariable MoonflyGreen
-highlight! link rubyResponse MoonflySky
-highlight! link rubyRoute MoonflySky
-highlight! link rubySharpBang MoonflyGrey247
-highlight! link rubyStringDelimiter MoonflyWheat
-highlight! link rubySymbol MoonflyPurple
-
-" Rust
-highlight! link rustAssert MoonflyGreen
-highlight! link rustAttribute MoonflyReset
-highlight! link rustCharacterInvalid MoonflyCranberry
-highlight! link rustCharacterInvalidUnicode MoonflyCranberry
-highlight! link rustCommentBlockDoc MoonflyGrey247
-highlight! link rustCommentBlockDocError MoonflyGrey247
-highlight! link rustCommentLineDoc MoonflyGrey247
-highlight! link rustCommentLineDocError MoonflyGrey247
-highlight! link rustConstant MoonflyOrange
-highlight! link rustDerive MoonflyGreen
-highlight! link rustEscapeError MoonflyCranberry
-highlight! link rustFuncName MoonflyBlue
-highlight! link rustIdentifier MoonflyBlue
-highlight! link rustInvalidBareKeyword MoonflyCranberry
-highlight! link rustKeyword MoonflyViolet
-highlight! link rustLifetime MoonflyViolet
-highlight! link rustMacro MoonflyGreen
-highlight! link rustMacroVariable MoonflyViolet
-highlight! link rustModPath MoonflyBlue
-highlight! link rustObsoleteExternMod MoonflyCranberry
-highlight! link rustObsoleteStorage MoonflyCranberry
-highlight! link rustReservedKeyword MoonflyCranberry
-highlight! link rustSelf MoonflyTurquoise
-highlight! link rustSigil MoonflyTurquoise
-highlight! link rustStorage MoonflyViolet
-highlight! link rustStructure MoonflyViolet
-highlight! link rustTrait MoonflyEmerald
-highlight! link rustType MoonflyEmerald
-
-" Scala (note, link highlighting does not work, I don't know why)
-exec 'highlight scalaCapitalWord ctermfg=' . s:blue.term . ' guifg=' . s:blue.hex
-exec 'highlight scalaCommentCodeBlock ctermfg=' . s:grey247.term . ' guifg=' . s:grey247.hex
-exec 'highlight scalaInstanceDeclaration ctermfg=' . s:turquoise.term . ' guifg=' . s:turquoise.hex
-exec 'highlight scalaKeywordModifier ctermfg=' . s:lime.term . ' guifg=' . s:lime.hex
-exec 'highlight scalaSpecial ctermfg=' . s:crimson.term . ' guifg=' . s:crimson.hex
-
-" Shell scripts
-highlight! link shAlias MoonflyTurquoise
-highlight! link shCommandSub MoonflyReset
-highlight! link shLoop MoonflyViolet
-highlight! link shSetList MoonflyTurquoise
-highlight! link shShellVariables MoonflyLime
-highlight! link shVariable MoonflyTurquoise
-
-" TypeScript (leafgarland/typescript-vim)
-highlight! link typescriptDOMObjects MoonflyBlue
-highlight! link typescriptFuncComma MoonflyWhite
-highlight! link typescriptFuncKeyword MoonflyLime
-highlight! link typescriptGlobalObjects MoonflyBlue
-highlight! link typescriptIdentifier MoonflyGreen
-highlight! link typescriptNull MoonflyGreen
-highlight! link typescriptOpSymbols MoonflyViolet
-highlight! link typescriptOperator MoonflyCrimson
-highlight! link typescriptParens MoonflyWhite
-highlight! link typescriptReserved MoonflyViolet
-highlight! link typescriptStorageClass MoonflyLime
-
-" TypeScript (HerringtonDarkholme/yats.vim)
-highlight! link typeScriptModule MoonflyBlue
-highlight! link typescriptAbstract MoonflyCoral
-highlight! link typescriptArrayMethod MoonflySky
-highlight! link typescriptArrowFuncArg MoonflyWhite
-highlight! link typescriptBOM MoonflyEmerald
-highlight! link typescriptBOMHistoryMethod MoonflySky
-highlight! link typescriptBOMLocationMethod MoonflySky
-highlight! link typescriptBOMWindowProp MoonflyGreen
-highlight! link typescriptBraces MoonflyWhite
-highlight! link typescriptCall MoonflyWhite
-highlight! link typescriptClassHeritage MoonflyEmerald
-highlight! link typescriptClassKeyword MoonflyOrange
-highlight! link typescriptClassName MoonflyEmerald
-highlight! link typescriptDecorator MoonflyLime
-highlight! link typescriptDOMDocMethod MoonflySky
-highlight! link typescriptDOMEventTargetMethod MoonflySky
-highlight! link typescriptDOMNodeMethod MoonflySky
-highlight! link typescriptExceptions MoonflyCrimson
-highlight! link typescriptFuncType MoonflyWhite
-highlight! link typescriptMathStaticMethod MoonflySky
-highlight! link typescriptMethodAccessor MoonflyViolet
-highlight! link typescriptObjectLabel MoonflySky
-highlight! link typescriptParamImpl MoonflyWhite
-highlight! link typescriptStringMethod MoonflySky
-highlight! link typescriptTry MoonflyCrimson
-highlight! link typescriptVariable MoonflyLime
-highlight! link typescriptXHRMethod MoonflySky
-
-" Vimscript
-highlight! link vimBracket MoonflySky
-highlight! link vimCommand MoonflyViolet
-highlight! link vimCommentTitle MoonflyViolet
-highlight! link vimEnvvar MoonflyCrimson
-highlight! link vimFuncName MoonflySky
-highlight! link vimFuncSID MoonflySky
-highlight! link vimFunction MoonflySky
-highlight! link vimHighlight MoonflySky
-highlight! link vimNotFunc MoonflyViolet
-highlight! link vimNotation MoonflySky
-highlight! link vimOption MoonflyTurquoise
-highlight! link vimParenSep MoonflyWhite
-highlight! link vimSep MoonflyWhite
-highlight! link vimUserFunc MoonflySky
-
-" XML
-highlight! link xmlAttrib MoonflyLime
-highlight! link xmlEndTag MoonflyBlue
-highlight! link xmlTag MoonflyLime
-highlight! link xmlTagName MoonflyBlue
-
-" Git commits
-highlight! link gitCommitBranch MoonflySky
-highlight! link gitCommitDiscardedFile MoonflyCrimson
-highlight! link gitCommitDiscardedType MoonflySky
-highlight! link gitCommitHeader MoonflyPurple
-highlight! link gitCommitSelectedFile MoonflyEmerald
-highlight! link gitCommitSelectedType MoonflySky
-highlight! link gitCommitUntrackedFile MoonflyCranberry
-highlight! link gitEmail MoonflyBlue
-
-" Git commit diffs
-highlight! link diffAdded MoonflyGreen
-highlight! link diffChanged MoonflyCrimson
-highlight! link diffIndexLine MoonflyCrimson
-highlight! link diffLine MoonflySky
-highlight! link diffRemoved MoonflyRed
-highlight! link diffSubname MoonflySky
-
-" Tagbar plugin
-highlight! link TagbarFoldIcon MoonflyGrey247
-highlight! link TagbarVisibilityPublic MoonflyLime
-highlight! link TagbarVisibilityProtected MoonflyLime
-highlight! link TagbarVisibilityPrivate MoonflyLime
-highlight! link TagbarKind MoonflyEmerald
-
-" NERDTree plugin
-highlight! link NERDTreeClosable MoonflyEmerald
-highlight! link NERDTreeCWD MoonflyPurple
-highlight! link NERDTreeDir MoonflySky
-highlight! link NERDTreeDirSlash MoonflyCranberry
-highlight! link NERDTreeExecFile MoonflyWheat
-highlight! link NERDTreeFile MoonflyWhite
-highlight! link NERDTreeHelp MoonflyGrey247
-highlight! link NERDTreeLinkDir MoonflyBlue
-highlight! link NERDTreeLinkFile MoonflyBlue
-highlight! link NERDTreeLinkTarget MoonflyTurquoise
-highlight! link NERDTreeOpenable MoonflyEmerald
-highlight! link NERDTreePart MoonflyGrey0
-highlight! link NERDTreePartFile MoonflyGrey0
-highlight! link NERDTreeUp MoonflyBlue
-
-" NERDTree Git plugin
-highlight! link NERDTreeGitStatusDirDirty MoonflyWheat
-highlight! link NERDTreeGitStatusModified MoonflyCrimson
-highlight! link NERDTreeGitStatusRenamed MoonflySky
-highlight! link NERDTreeGitStatusStaged MoonflySky
-highlight! link NERDTreeGitStatusUntracked MoonflyRed
-
-" fern.vim plugin
-highlight! link FernBranchSymbol MoonflyEmerald
-highlight! link FernBranchText MoonflyBlue
-highlight! link FernMarkedLine MoonflyYellow
-highlight! link FernMarkedText MoonflyCrimson
-highlight! link FernRootSymbol MoonflyPurple
-highlight! link FernRootText MoonflyPurple
-
-" fern-git-status.vim plugin
-highlight! link FernGitStatusBracket MoonflyGrey246
-highlight! link FernGitStatusIndex MoonflyEmerald
-highlight! link FernGitStatusWorktree MoonflyCrimson
-
-" Misc stylings
-highlight! link bufExplorerHelp MoonflyGrey247
-highlight! link bufExplorerSortBy MoonflyGrey247
-highlight! link CleverFDefaultLabel MoonflyCrimson
-highlight! link CtrlPMatch MoonflyCoral
-highlight! link Directory MoonflyBlue
-highlight! link HighlightedyankRegion MoonflyGrey0
-highlight! link jsonKeyword MoonflySky
-highlight! link jsonQuote MoonflyWhite
-highlight! link netrwClassify MoonflyCranberry
-highlight! link netrwDir MoonflySky
-highlight! link netrwExe MoonflyWheat
-highlight! link tagName MoonflyTurquoise
-highlight! link Cheat40Header MoonflyBlue
-highlight! link yamlBlockMappingKey MoonflySky
-highlight! link yamlFlowMappingKey MoonflySky
-if g:moonflyUnderlineMatchParen
- exec 'highlight MatchWord cterm=underline gui=underline guisp=' . s:coral.hex
-else
- highlight! link MatchWord MoonflyCoral
-endif
-exec 'highlight snipLeadingSpaces ctermbg=bg ctermfg=fg guibg=bg guifg=fg'
-exec 'highlight MatchWordCur ctermbg=bg guibg=bg'
-
-" vimdiff/nvim -d
-exec 'highlight DiffAdd ctermbg=' . s:emerald.term . ' ctermfg=' . s:black.term . ' guibg=' . s:emerald.hex . ' guifg=' . s:black.hex
-exec 'highlight DiffChange ctermbg=' . s:grey236.term . ' guibg=' . s:grey236.hex
-exec 'highlight DiffDelete ctermbg=' . s:grey236.term . ' ctermfg=' . s:crimson.term . ' guibg=' . s:grey236.hex . ' guifg=' . s:crimson.hex ' gui=none'
-exec 'highlight DiffText ctermbg=' . s:blue.term . ' ctermfg=' . s:black.term . ' guibg=' . s:blue.hex . ' guifg=' . s:black.hex . ' gui=none'
-
-" ALE plugin
-if g:moonflyUndercurls
- exec 'highlight ALEError ctermbg=NONE guibg=NONE gui=undercurl guisp=' . s:red.hex
- exec 'highlight ALEWarning ctermbg=NONE guibg=NONE gui=undercurl guisp=' . s:yellow.hex
- exec 'highlight ALEInfo ctermbg=NONE guibg=NONE gui=undercurl guisp=' . s:sky.hex
-else
- exec 'highlight ALEError ctermbg=NONE guibg=NONE'
- exec 'highlight ALEWarning ctermbg=NONE guibg=NONE'
- exec 'highlight ALEInfo ctermbg=NONE guibg=NONE'
-endif
-highlight! link ALEVirtualTextError MoonflyGrey241
-highlight! link ALEErrorSign MoonflyRedAlert
-highlight! link ALEVirtualTextWarning MoonflyGrey241
-highlight! link ALEWarningSign MoonflyYellowAlert
-highlight! link ALEVirtualTextInfo MoonflyGrey241
-highlight! link ALEInfoSign MoonflySkyAlert
-
-" GitGutter plugin
-highlight! link GitGutterAdd MoonflyEmeraldAlert
-highlight! link GitGutterChange MoonflyYellowAlert
-highlight! link GitGutterChangeDelete MoonflyCoralAlert
-highlight! link GitGutterDelete MoonflyRedAlert
-
-" Signify plugin
-highlight! link SignifySignAdd MoonflyEmeraldAlert
-highlight! link SignifySignChange MoonflyYellowAlert
-highlight! link SignifySignDelete MoonflyRedAlert
-
-" FZF plugin
-exec 'highlight fzf1 ctermfg=' . s:crimson.term . ' ctermbg=' . s:grey236.term . ' guifg=' . s:crimson.hex . ' guibg=' . s:grey236.hex
-exec 'highlight fzf2 ctermfg=' . s:blue.term . ' ctermbg=' . s:grey236.term . ' guifg=' . s:blue.hex . ' guibg=' . s:grey236.hex
-exec 'highlight fzf3 ctermfg=' . s:emerald.term . ' ctermbg=' . s:grey236.term . ' guifg=' . s:emerald.hex . ' guibg=' . s:grey236.hex
-exec 'highlight fzfNormal ctermfg=' . s:grey249.term . ' guifg=' . s:grey249.hex
-exec 'highlight fzfFgPlus ctermfg=' . s:grey254.term . ' guifg=' . s:grey254.hex
-exec 'highlight fzfBorder ctermfg=' . s:grey236.term . ' guifg=' . s:grey236.hex
-let g:fzf_colors = {
- \ 'fg': ['fg', 'fzfNormal'],
- \ 'bg': ['bg', 'Normal'],
- \ 'hl': ['fg', 'Boolean'],
- \ 'fg+': ['fg', 'fzfFgPlus'],
- \ 'bg+': ['bg', 'Pmenu'],
- \ 'hl+': ['fg', 'Boolean'],
- \ 'info': ['fg', 'String'],
- \ 'border': ['fg', 'fzfBorder'],
- \ 'prompt': ['fg', 'fzf2'],
- \ 'pointer': ['fg', 'Exception'],
- \ 'marker': ['fg', 'StorageClass'],
- \ 'spinner': ['fg', 'Type'],
- \ 'header': ['fg', 'CursorLineNr']
- \}
-
-" Coc plugin
-highlight! link CocUnusedHighlight MoonflyGrey249
-
-" indentLine plugin
-if !exists('g:indentLine_defaultGroup') && !exists('g:indentLine_color_gui') && !exists('g:indentLine_color_term')
- let g:indentLine_color_term = s:grey235.term
- let g:indentLine_color_gui = s:grey235.hex
-endif
-
-" Neovim diagnostics
-if has('nvim-0.6')
- " Neovim 0.6 diagnostic
- highlight! link DiagnosticError MoonflyRed
- highlight! link DiagnosticWarn MoonflyYellow
- highlight! link DiagnosticInfo MoonflySky
- highlight! link DiagnosticHint MoonflyWhite
- if g:moonflyUndercurls
- exec 'highlight DiagnosticUnderlineError ctermbg=NONE guibg=NONE gui=undercurl guisp=' . s:red.hex
- exec 'highlight DiagnosticUnderlineWarn ctermbg=NONE guibg=NONE gui=undercurl guisp=' . s:yellow.hex
- exec 'highlight DiagnosticUnderlineInfo ctermbg=NONE guibg=NONE gui=undercurl guisp=' . s:sky.hex
- exec 'highlight DiagnosticUnderlineHint ctermbg=NONE guibg=NONE gui=undercurl guisp=' . s:white.hex
- else
- exec 'highlight DiagnosticUnderlineError ctermbg=NONE guibg=NONE gui=underline guisp=' . s:red.hex
- exec 'highlight DiagnosticUnderlineWarn ctermbg=NONE guibg=NONE gui=underline guisp=' . s:blue.hex
- exec 'highlight DiagnosticUnderlineInfo ctermbg=NONE guibg=NONE gui=underline guisp=' . s:yellow.hex
- exec 'highlight DiagnosticUnderlineHint ctermbg=NONE guibg=NONE gui=underline guisp=' . s:sky.hex
- endif
- highlight! link DiagnosticVirtualTextError MoonflyGrey241
- highlight! link DiagnosticVirtualTextWarn MoonflyGrey241
- highlight! link DiagnosticVirtualTextInfo MoonflyGrey241
- highlight! link DiagnosticVirtualTextHint MoonflyGrey241
- highlight! link DiagnosticSignError MoonflyRedAlert
- highlight! link DiagnosticSignWarn MoonflyYellowAlert
- highlight! link DiagnosticSignInfo MoonflySkyAlert
- highlight! link DiagnosticSignHint MoonflyWhiteAlert
- highlight! link DiagnosticFloatingError MoonflyRed
- highlight! link DiagnosticFloatingWarn MoonflyYellow
- highlight! link DiagnosticFloatingInfo MoonflySky
- highlight! link DiagnosticFloatingHint MoonflyWhite
- highlight! link LspSignatureActiveParameter MoonflyVisual
-elseif has('nvim-0.5')
- " Neovim 0.5 LSP diagnostics
- if g:moonflyUndercurls
- exec 'highlight LspDiagnosticsUnderlineError ctermbg=NONE guibg=NONE gui=undercurl guisp=' . s:red.hex
- exec 'highlight LspDiagnosticsUnderlineWarning ctermbg=NONE guibg=NONE gui=undercurl guisp=' . s:yellow.hex
- exec 'highlight LspDiagnosticsUnderlineInformation ctermbg=NONE guibg=NONE gui=undercurl guisp=' . s:sky.hex
- exec 'highlight LspDiagnosticsUnderlineHint ctermbg=NONE guibg=NONE gui=undercurl guisp=' . s:white.hex
- else
- exec 'highlight LspDiagnosticsUnderlineError ctermbg=NONE guibg=NONE gui=underline guisp=' . s:red.hex
- exec 'highlight LspDiagnosticsUnderlineWarning ctermbg=NONE guibg=NONE gui=underline guisp=' . s:blue.hex
- exec 'highlight LspDiagnosticsUnderlineInformation ctermbg=NONE guibg=NONE gui=underline guisp=' . s:yellow.hex
- exec 'highlight LspDiagnosticsUnderlineHint ctermbg=NONE guibg=NONE gui=underline guisp=' . s:sky.hex
- endif
- highlight! link LspDiagnosticsVirtualTextWarning MoonflyGrey241
- highlight! link LspDiagnosticsVirtualTextError MoonflyGrey241
- highlight! link LspDiagnosticsVirtualTextInformation MoonflyGrey241
- highlight! link LspDiagnosticsVirtualTextHint MoonflyGrey241
- highlight! link LspDiagnosticsSignError MoonflyRedAlert
- highlight! link LspDiagnosticsSignWarning MoonflyYellowAlert
- highlight! link LspDiagnosticsSignInformation MoonflySkyAlert
- highlight! link LspDiagnosticsSignHint MoonflyWhiteAlert
- highlight! link LspDiagnosticsFloatingError MoonflyRed
- highlight! link LspDiagnosticsFloatingWarning MoonflyYellow
- highlight! link LspDiagnosticsFloatingInformation MoonflySky
- highlight! link LspDiagnosticsFloatingHint MoonflyWhite
- highlight! link LspSignatureActiveParameter MoonflyVisual
-endif
-
-" Neovim only plugins
-if has('nvim')
- " NvimTree plugin
- highlight! link NvimTreeFolderIcon MoonflyBlue
- highlight! link NvimTreeFolderName MoonflyBlue
- highlight! link NvimTreeIndentMarker MoonflyGrey236
- highlight! link NvimTreeOpenedFolderName MoonflyBlue
- highlight! link NvimTreeRootFolder MoonflyPurple
- highlight! link NvimTreeSpecialFile MoonflyYellow
- highlight! link NvimTreeWindowPicker DiffChange
- exec 'highlight NvimTreeExecFile ctermfg=' . s:green.term . ' guifg=' . s:green.hex . ' gui=none'
- exec 'highlight NvimTreeImageFile ctermfg=' . s:violet.term . ' guifg=' . s:violet.hex . ' gui=none'
- exec 'highlight NvimTreeOpenedFile ctermfg=' . s:yellow.term . ' guifg=' . s:yellow.hex . ' gui=none'
- exec 'highlight NvimTreeSymlink ctermfg=' . s:turquoise.term . ' guifg=' . s:turquoise.hex . ' gui=none'
-
- " Telescope plugin
- highlight! link TelescopeBorder MoonflyGrey236
- highlight! link TelescopeMatching MoonflyCoral
- highlight! link TelescopeMultiSelection MoonflyCrimson
- highlight! link TelescopeNormal MoonflyGrey249
- highlight! link TelescopePreviewDate MoonflyGrey246
- highlight! link TelescopePreviewGroup MoonflyGrey246
- highlight! link TelescopePreviewLink MoonflyTurquoise
- highlight! link TelescopePreviewMatch MoonflyVisual
- highlight! link TelescopePreviewRead MoonflyOrange
- highlight! link TelescopePreviewSize MoonflyEmerald
- highlight! link TelescopePreviewUser MoonflyGrey246
- highlight! link TelescopePromptPrefix MoonflyBlue
- highlight! link TelescopeResultsDiffAdd MoonflyGreen
- highlight! link TelescopeResultsDiffChange MoonflyRed
- highlight! link TelescopeResultsSpecialComment MoonflyGrey241
- highlight! link TelescopeSelectionCaret MoonflyCrimson
- highlight! link TelescopeTitle MoonflyGrey241
- exec 'highlight TelescopeSelection ctermbg=' . s:grey0.term . ' ctermfg=' . s:grey254.term . ' guibg=' . s:grey0.hex . ' guifg=' . s:grey254.hex
-
- " gitsigns.nvim plugin
- highlight! link GitSignsAdd MoonflyEmeraldAlert
- highlight! link GitSignsChange MoonflyYellowAlert
- highlight! link GitSignsChangeNr MoonflyYellowAlert
- highlight! link GitSignsChangeLn MoonflyYellowAlert
- highlight! link GitSignsChangeDelete MoonflyCoralAlert
- highlight! link GitSignsDelete MoonflyRedAlert
-
- " Hop plugin
- highlight! link HopNextKey MoonflyYellow
- highlight! link HopNextKey1 MoonflyBlue
- highlight! link HopNextKey2 MoonflyCrimson
- highlight! link HopUnmatched MoonflyGrey247
-
- " Barbar plugin
- exec 'highlight BufferCurrent ctermbg=' . s:grey234.term . ' ctermfg=' . s:white.term . ' guibg=' . s:grey234.hex . ' guifg=' . s:white.hex
- exec 'highlight BufferCurrentIndex ctermbg=' . s:grey234.term . ' ctermfg=' . s:white.term . ' guibg=' . s:grey234.hex . ' guifg=' . s:white.hex
- exec 'highlight BufferCurrentMod ctermbg=' . s:grey234.term . ' ctermfg=' . s:wheat.term . ' guibg=' . s:grey234.hex . ' guifg=' . s:wheat.hex
- exec 'highlight BufferCurrentSign ctermbg=' . s:grey234.term . ' ctermfg=' . s:blue.term . ' guibg=' . s:grey234.hex . ' guifg=' . s:blue.hex
- exec 'highlight BufferVisible ctermbg=' . s:grey234.term . ' ctermfg=' . s:grey246.term . ' guibg=' . s:grey234.hex . ' guifg=' . s:grey246.hex
- exec 'highlight BufferVisibleIndex ctermbg=' . s:grey234.term . ' ctermfg=' . s:grey246.term . ' guibg=' . s:grey234.hex . ' guifg=' . s:grey246.hex
- exec 'highlight BufferVisibleMod ctermbg=' . s:grey234.term . ' ctermfg=' . s:wheat.term . ' guibg=' . s:grey234.hex . ' guifg=' . s:wheat.hex
- exec 'highlight BufferVisibleSign ctermbg=' . s:grey234.term . ' ctermfg=' . s:grey246.term . ' guibg=' . s:grey234.hex . ' guifg=' . s:grey246.hex
- exec 'highlight BufferInactive ctermbg=' . s:grey236.term . ' ctermfg=' . s:grey246.term . ' guibg=' . s:grey236.hex . ' guifg=' . s:grey246.hex
- exec 'highlight BufferInactiveMod ctermbg=' . s:grey236.term . ' ctermfg=' . s:wheat.term . ' guibg=' . s:grey236.hex . ' guifg=' . s:wheat.hex
- exec 'highlight BufferInactiveSign ctermbg=' . s:grey236.term . ' ctermfg=' . s:grey247.term . ' guibg=' . s:grey236.hex . ' guifg=' . s:grey247.hex
-
- " nvim-cmp plugin
- highlight! link CmpItemAbbrMatch MoonflyGrey254
- highlight! link CmpItemAbbrMatchFuzzy MoonflyCoral
- highlight! link CmpItemKind MoonflyBlue
- highlight! link CmpItemMenu MoonflyGrey247
-endif
-
-set background=dark