Initial commit

This commit is contained in:
jaseg 2020-11-04 17:35:19 +01:00
commit 29daecb0ce
23 changed files with 3745 additions and 0 deletions

8
nvim/.netrwhist Normal file
View file

@ -0,0 +1,8 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhist_cnt =6
let g:netrw_dirhist_1='/home/user/toys/moargb/fw'
let g:netrw_dirhist_2='/home/user/research/smart_meter_reset/controller/fw'
let g:netrw_dirhist_3='/home/user/toys/8seg/driver_fw'
let g:netrw_dirhist_4='/home/user/admin/site/blog.jaseg.de/content/posts/sybil-resistance-identity'
let g:netrw_dirhist_5='/home/user/admin/site/blog.jaseg.de/content/posts/led-characterization'
let g:netrw_dirhist_6='/home/user/toys/kicad_mesh_plugin/plugin'

304
nvim/after/syntax/c.vim Normal file
View file

@ -0,0 +1,304 @@
" Vim syntax file
" Language: C Additions
" Maintainer: Jon Haggblad <jon@haeggblad.com>
" Contributor: Mikhail Wolfson <mywolfson@gmail.com>
" URL: http://www.haeggblad.com
" Last Change: 6 Sep 2014
" Version: 0.3
" Changelog:
" 0.3 - integration of aftersyntaxc.vim
" 0.2 - Cleanup
" 0.1 - initial version.
"
" Syntax highlighting for functions in C.
"
" Based on:
" http://stackoverflow.com/questions/736701/class-function-names-highlighting-in-vim
" -----------------------------------------------------------------------------
" Highlight function names.
" -----------------------------------------------------------------------------
if !exists('g:cpp_no_function_highlight')
syn match cCustomParen transparent "(" contains=cParen contains=cCppParen
syn match cCustomFunc "\w\+\s*(\@=" contains=cCustomParen
hi def link cCustomFunc Function
endif
" -----------------------------------------------------------------------------
" Highlight member variable names.
" -----------------------------------------------------------------------------
if exists('g:cpp_member_variable_highlight') && g:cpp_member_variable_highlight
syn match cCustomDot "\." contained
syn match cCustomPtr "->" contained
syn match cCustomMemVar "\(\.\|->\)\h\w*" contains=cCustomDot,cCustomPtr
hi def link cCustomMemVar Function
endif
" -----------------------------------------------------------------------------
" Source: aftersyntaxc.vim
" -----------------------------------------------------------------------------
" Common ANSI-standard functions
syn keyword cAnsiFunction MULU_ DIVU_ MODU_ MUL_ DIV_ MOD_
syn keyword cAnsiFunction main typeof
syn keyword cAnsiFunction open close read write lseek dup dup2
syn keyword cAnsiFunction fcntl ioctl
syn keyword cAnsiFunction wctrans towctrans towupper
syn keyword cAnsiFunction towlower wctype iswctype
syn keyword cAnsiFunction iswxdigit iswupper iswspace
syn keyword cAnsiFunction iswpunct iswprint iswlower
syn keyword cAnsiFunction iswgraph iswdigit iswcntrl
syn keyword cAnsiFunction iswalpha iswalnum wcsrtombs
syn keyword cAnsiFunction mbsrtowcs wcrtomb mbrtowc
syn keyword cAnsiFunction mbrlen mbsinit wctob
syn keyword cAnsiFunction btowc wcsfxtime wcsftime
syn keyword cAnsiFunction wmemset wmemmove wmemcpy
syn keyword cAnsiFunction wmemcmp wmemchr wcstok
syn keyword cAnsiFunction wcsstr wcsspn wcsrchr
syn keyword cAnsiFunction wcspbrk wcslen wcscspn
syn keyword cAnsiFunction wcschr wcsxfrm wcsncmp
syn keyword cAnsiFunction wcscoll wcscmp wcsncat
syn keyword cAnsiFunction wcscat wcsncpy wcscpy
syn keyword cAnsiFunction wcstoull wcstoul wcstoll
syn keyword cAnsiFunction wcstol wcstold wcstof
syn keyword cAnsiFunction wcstod ungetwc putwchar
syn keyword cAnsiFunction putwc getwchar getwc
syn keyword cAnsiFunction fwide fputws fputwc
syn keyword cAnsiFunction fgetws fgetwc wscanf
syn keyword cAnsiFunction wprintf vwscanf vwprintf
syn keyword cAnsiFunction vswscanf vswprintf vfwscanf
syn keyword cAnsiFunction vfwprintf swscanf swprintf
syn keyword cAnsiFunction fwscanf fwprintf zonetime
syn keyword cAnsiFunction strfxtime strftime localtime
syn keyword cAnsiFunction gmtime ctime asctime
syn keyword cAnsiFunction time mkxtime mktime
syn keyword cAnsiFunction difftime clock strlen
syn keyword cAnsiFunction strerror memset strtok
syn keyword cAnsiFunction strstr strspn strrchr
syn keyword cAnsiFunction strpbrk strcspn strchr
syn keyword cAnsiFunction memchr strxfrm strncmp
syn keyword cAnsiFunction strcoll strcmp memcmp
syn keyword cAnsiFunction strncat strcat strncpy
syn keyword cAnsiFunction strcpy memmove memcpy
syn keyword cAnsiFunction wcstombs mbstowcs wctomb
syn keyword cAnsiFunction mbtowc mblen lldiv
syn keyword cAnsiFunction ldiv div llabs
syn keyword cAnsiFunction labs abs qsort
"syn keyword cAnsiFunction bsearch system getenv
syn keyword cAnsiFunction bsearch getenv
syn keyword cAnsiFunction exit atexit abort
syn keyword cAnsiFunction realloc malloc free
syn keyword cAnsiFunction calloc srand rand
syn keyword cAnsiFunction strtoull strtoul strtoll
syn keyword cAnsiFunction strtol strtold strtof
syn keyword cAnsiFunction strtod atoll atol
syn keyword cAnsiFunction atoi atof perror
syn keyword cAnsiFunction ferror feof clearerr
syn keyword cAnsiFunction rewind ftell fsetpos
syn keyword cAnsiFunction fseek fgetpos fwrite
syn keyword cAnsiFunction fread ungetc puts
syn keyword cAnsiFunction putchar putc gets
syn keyword cAnsiFunction getchar getc fputs
syn keyword cAnsiFunction fputc fgets fgetc
syn keyword cAnsiFunction vsscanf vsprintf vsnprintf
syn keyword cAnsiFunction vscanf vprintf vfscanf
syn keyword cAnsiFunction vfprintf sscanf sprintf
syn keyword cAnsiFunction snprintf scanf printf
syn keyword cAnsiFunction fscanf fprintf setvbuf
syn keyword cAnsiFunction setbuf freopen fopen
syn keyword cAnsiFunction fflush fclose tmpnam
syn keyword cAnsiFunction tmpfile rename remove
syn keyword cAnsiFunction offsetof va_start va_end
syn keyword cAnsiFunction va_copy va_arg raise signal
syn keyword cAnsiFunction longjmp setjmp isunordered
syn keyword cAnsiFunction islessgreater islessequal isless
syn keyword cAnsiFunction isgreaterequal isgreater fmal
syn keyword cAnsiFunction fmaf fma fminl
syn keyword cAnsiFunction fminf fmin fmaxl
syn keyword cAnsiFunction fmaxf fmax fdiml
syn keyword cAnsiFunction fdimf fdim nextafterxl
syn keyword cAnsiFunction nextafterxf nextafterx nextafterl
syn keyword cAnsiFunction nextafterf nextafter nanl
syn keyword cAnsiFunction nanf nan copysignl
syn keyword cAnsiFunction copysignf copysign remquol
syn keyword cAnsiFunction remquof remquo remainderl
syn keyword cAnsiFunction remainderf remainder fmodl
syn keyword cAnsiFunction fmodf fmod truncl
syn keyword cAnsiFunction truncf trunc llroundl
syn keyword cAnsiFunction llroundf llround lroundl
syn keyword cAnsiFunction lroundf lround roundl
syn keyword cAnsiFunction roundf round llrintl
syn keyword cAnsiFunction llrintf llrint lrintl
syn keyword cAnsiFunction lrintf lrint rintl
syn keyword cAnsiFunction rintf rint nearbyintl
syn keyword cAnsiFunction nearbyintf nearbyint floorl
syn keyword cAnsiFunction floorf floor ceill
syn keyword cAnsiFunction ceilf ceil tgammal
syn keyword cAnsiFunction tgammaf tgamma lgammal
syn keyword cAnsiFunction lgammaf lgamma erfcl
syn keyword cAnsiFunction erfcf erfc erfl
syn keyword cAnsiFunction erff erf sqrtl
syn keyword cAnsiFunction sqrtf sqrt powl
syn keyword cAnsiFunction powf pow hypotl
syn keyword cAnsiFunction hypotf hypot fabsl
syn keyword cAnsiFunction fabsf fabs cbrtl
syn keyword cAnsiFunction cbrtf cbrt scalblnl
syn keyword cAnsiFunction scalblnf scalbln scalbnl
syn keyword cAnsiFunction scalbnf scalbn modfl
syn keyword cAnsiFunction modff modf logbl
syn keyword cAnsiFunction logbf logb log2l
syn keyword cAnsiFunction log2f log2 log1pl
syn keyword cAnsiFunction log1pf log1p log10l
syn keyword cAnsiFunction log10f log10 logl
syn keyword cAnsiFunction logf log ldexpl
syn keyword cAnsiFunction ldexpf ldexp ilogbl
syn keyword cAnsiFunction ilogbf ilogb frexpl
syn keyword cAnsiFunction frexpf frexp expm1l
syn keyword cAnsiFunction expm1f expm1 exp2l
syn keyword cAnsiFunction exp2f exp2 expl
syn keyword cAnsiFunction expf exp tanhl
syn keyword cAnsiFunction tanhf tanh sinhl
syn keyword cAnsiFunction sinhf sinh coshl
syn keyword cAnsiFunction coshf cosh atanhl
syn keyword cAnsiFunction atanhf atanh asinhl
syn keyword cAnsiFunction asinhf asinh acoshl
syn keyword cAnsiFunction acoshf acosh tanl
syn keyword cAnsiFunction tanf tan sinl
syn keyword cAnsiFunction sinf sin cosl
syn keyword cAnsiFunction cosf cos atan2l
syn keyword cAnsiFunction atan2f atan2 atanl
syn keyword cAnsiFunction atanf atan asinl
syn keyword cAnsiFunction asinf asin acosl
syn keyword cAnsiFunction acosf acos signbit
syn keyword cAnsiFunction isnormal isnan isinf
syn keyword cAnsiFunction isfinite fpclassify localeconv
syn keyword cAnsiFunction setlocale wcstoumax wcstoimax
syn keyword cAnsiFunction strtoumax strtoimax feupdateenv
syn keyword cAnsiFunction fesetenv feholdexcept fegetenv
syn keyword cAnsiFunction fesetround fegetround fetestexcept
syn keyword cAnsiFunction fesetexceptflag feraiseexcept fegetexceptflag
syn keyword cAnsiFunction feclearexcept toupper tolower
syn keyword cAnsiFunction isxdigit isupper isspace
syn keyword cAnsiFunction ispunct isprint islower
syn keyword cAnsiFunction isgraph isdigit iscntrl
syn keyword cAnsiFunction isalpha isalnum creall
syn keyword cAnsiFunction crealf creal cprojl
syn keyword cAnsiFunction cprojf cproj conjl
syn keyword cAnsiFunction conjf conj cimagl
syn keyword cAnsiFunction cimagf cimag cargl
syn keyword cAnsiFunction cargf carg csqrtl
syn keyword cAnsiFunction csqrtf csqrt cpowl
syn keyword cAnsiFunction cpowf cpow cabsl
syn keyword cAnsiFunction cabsf cabs clogl
syn keyword cAnsiFunction clogf clog cexpl
syn keyword cAnsiFunction cexpf cexp ctanhl
syn keyword cAnsiFunction ctanhf ctanh csinhl
syn keyword cAnsiFunction csinhf csinh ccoshl
syn keyword cAnsiFunction ccoshf ccosh catanhl
syn keyword cAnsiFunction catanhf catanh casinhl
syn keyword cAnsiFunction casinhf casinh cacoshl
syn keyword cAnsiFunction cacoshf cacosh ctanl
syn keyword cAnsiFunction ctanf ctan csinl
syn keyword cAnsiFunction csinf csin ccosl
syn keyword cAnsiFunction ccosf ccos catanl
syn keyword cAnsiFunction catanf catan casinl
syn keyword cAnsiFunction casinf casin cacosl
syn keyword cAnsiFunction cacosf cacos assert
syn keyword cAnsiFunction UINTMAX_C INTMAX_C UINT64_C
syn keyword cAnsiFunction UINT32_C UINT16_C UINT8_C
syn keyword cAnsiFunction INT64_C INT32_C INT16_C INT8_C
" Common ANSI-standard Names
syn keyword cAnsiName PRId8 PRIi16 PRIo32 PRIu64
syn keyword cAnsiName PRId16 PRIi32 PRIo64 PRIuLEAST8
syn keyword cAnsiName PRId32 PRIi64 PRIoLEAST8 PRIuLEAST16
syn keyword cAnsiName PRId64 PRIiLEAST8 PRIoLEAST16 PRIuLEAST32
syn keyword cAnsiName PRIdLEAST8 PRIiLEAST16 PRIoLEAST32 PRIuLEAST64
syn keyword cAnsiName PRIdLEAST16 PRIiLEAST32 PRIoLEAST64 PRIuFAST8
syn keyword cAnsiName PRIdLEAST32 PRIiLEAST64 PRIoFAST8 PRIuFAST16
syn keyword cAnsiName PRIdLEAST64 PRIiFAST8 PRIoFAST16 PRIuFAST32
syn keyword cAnsiName PRIdFAST8 PRIiFAST16 PRIoFAST32 PRIuFAST64
syn keyword cAnsiName PRIdFAST16 PRIiFAST32 PRIoFAST64 PRIuMAX
syn keyword cAnsiName PRIdFAST32 PRIiFAST64 PRIoMAX PRIuPTR
syn keyword cAnsiName PRIdFAST64 PRIiMAX PRIoPTR PRIx8
syn keyword cAnsiName PRIdMAX PRIiPTR PRIu8 PRIx16
syn keyword cAnsiName PRIdPTR PRIo8 PRIu16 PRIx32
syn keyword cAnsiName PRIi8 PRIo16 PRIu32 PRIx64
syn keyword cAnsiName PRIxLEAST8 SCNd8 SCNiFAST32 SCNuLEAST32
syn keyword cAnsiName PRIxLEAST16 SCNd16 SCNiFAST64 SCNuLEAST64
syn keyword cAnsiName PRIxLEAST32 SCNd32 SCNiMAX SCNuFAST8
syn keyword cAnsiName PRIxLEAST64 SCNd64 SCNiPTR SCNuFAST16
syn keyword cAnsiName PRIxFAST8 SCNdLEAST8 SCNo8 SCNuFAST32
syn keyword cAnsiName PRIxFAST16 SCNdLEAST16 SCNo16 SCNuFAST64
syn keyword cAnsiName PRIxFAST32 SCNdLEAST32 SCNo32 SCNuMAX
syn keyword cAnsiName PRIxFAST64 SCNdLEAST64 SCNo64 SCNuPTR
syn keyword cAnsiName PRIxMAX SCNdFAST8 SCNoLEAST8 SCNx8
syn keyword cAnsiName PRIxPTR SCNdFAST16 SCNoLEAST16 SCNx16
syn keyword cAnsiName PRIX8 SCNdFAST32 SCNoLEAST32 SCNx32
syn keyword cAnsiName PRIX16 SCNdFAST64 SCNoLEAST64 SCNx64
syn keyword cAnsiName PRIX32 SCNdMAX SCNoFAST8 SCNxLEAST8
syn keyword cAnsiName PRIX64 SCNdPTR SCNoFAST16 SCNxLEAST16
syn keyword cAnsiName PRIXLEAST8 SCNi8 SCNoFAST32 SCNxLEAST32
syn keyword cAnsiName PRIXLEAST16 SCNi16 SCNoFAST64 SCNxLEAST64
syn keyword cAnsiName PRIXLEAST32 SCNi32 SCNoMAX SCNxFAST8
syn keyword cAnsiName PRIXLEAST64 SCNi64 SCNoPTR SCNxFAST16
syn keyword cAnsiName PRIXFAST8 SCNiLEAST8 SCNu8 SCNxFAST32
syn keyword cAnsiName PRIXFAST16 SCNiLEAST16 SCNu16 SCNxFAST64
syn keyword cAnsiName PRIXFAST32 SCNiLEAST32 SCNu32 SCNxMAX
syn keyword cAnsiName PRIXFAST64 SCNiLEAST64 SCNu64 SCNxPTR
syn keyword cAnsiName PRIXMAX SCNiFAST8 SCNuLEAST8
syn keyword cAnsiName PRIXPTR SCNiFAST16 SCNuLEAST16
syn keyword cAnsiName errno environ
syn keyword cAnsiName STDC CX_LIMITED_RANGE
syn keyword cAnsiName STDC FENV_ACCESS
syn keyword cAnsiName STDC FP_CONTRACT
syn keyword cAnsiName and bitor not_eq xor
syn keyword cAnsiName and_eq compl or xor_eq
syn keyword cAnsiName bitand not or_eq
hi def link cAnsiFunction cFunction
hi def link cAnsiName cIdentifier
hi def link cFunction Function
hi def link cIdentifier Identifier
" Booleans
syn keyword cBoolean true false TRUE FALSE
hi def link cBoolean Boolean
" -----------------------------------------------------------------------------
" Additional optional highlighting
" -----------------------------------------------------------------------------
" Operators
"syn match cOperator "\(<<\|>>\|[-+*/%&^|<>!=]\)="
"syn match cOperator "<<\|>>\|&&\|||\|++\|--\|->"
"syn match cOperator "[.!~*&%<>^|=,+-]"
"syn match cOperator "/[^/*=]"me=e-1
"syn match cOperator "/$"
"syn match cOperator "&&\|||"
"syn match cOperator "[][]"
"
"" Preprocs
"syn keyword cDefined defined contained containedin=cDefine
"hi def link cDefined cDefine
"" Functions
"syn match cUserFunction "\<\h\w*\>\(\s\|\n\)*("me=e-1 contains=cType,cDelimiter,cDefine
"syn match cUserFunctionPointer "(\s*\*\s*\h\w*\s*)\(\s\|\n\)*(" contains=cDelimiter,cOperator
"
"hi def link cUserFunction cFunction
"hi def link cUserFunctionPointer cFunction
"
"" Delimiters
"syn match cDelimiter "[();\\]"
"" foldmethod=syntax fix, courtesy of Ivan Freitas
"syn match cBraces display "[{}]"
" Links
"hi def link cDelimiter Delimiter
" foldmethod=syntax fix, courtesy of Ivan Freitas
"hi def link cBraces Delimiter

2092
nvim/after/syntax/cpp.vim Normal file

File diff suppressed because it is too large Load diff

154
nvim/colors/dark-meadow.vim Normal file
View file

@ -0,0 +1,154 @@
" Name: dark-meadow
" Author: jliu2179
" Maintainer: jliu2179
" License: MIT
highlight clear
if exists('syntax_on')
syntax reset
endif
let g:colors_name = 'dark-meadow'
set background=dark
" Color palette
let s:clear = ['NONE', 'NONE' ]
let s:DeepSkyBlue3 = ['31' , '#0087af']
let s:Purple4 = ['55' , '#5f00af']
let s:Purple3 = ['56' , '#5f00ff']
let s:SteelBlue1 = ['81' , '#5fd7ff']
let s:DarkMagenta = ['90' , '#870087']
let s:SkyBlue1 = ['117' , '#87afff']
let s:DarkViolet = ['128' , '#af00d7']
let s:Magenta2 = ['165' , '#d700ff']
let s:Red1 = ['196' , '#ff0000']
let s:Magenta1 = ['201' , '#ff00ff']
let s:HotPink = ['206' , '#ff5fd7']
let s:MediumOrchid1 = ['207' , '#ff5faf']
let s:Yellow1 = ['226' , '#ffff00']
let s:MistyRose1 = ['224' , '#ffd7ff']
let s:Grey7 = ['233' , '#121212']
let s:Grey42 = ['242' , '#6c6c6c']
let s:Grey54 = ['245' , '#8a8a8a']
let s:Grey66 = ['248' , '#a8a8a8']
" Text style
let s:italic = 'italic'
let s:bold = 'bold'
let s:underline = 'underline'
let s:none = 'NONE'
" Helper function to set up highlight executions
function! s:highlight(group, fg, bg, style)
exec "highlight " . a:group
\ . " ctermfg=" . a:fg[0]
\ . " ctermbg=" . a:bg[0]
\ . " cterm=" . a:style
\ . " guifg=" . a:fg[1]
\ . " guibg=" . a:bg[1]
\ . " gui=" . a:style
endfunction
" Syntax highlighting groups
"
" For reference on what each group does, please refer to this:
" vimdoc.sourceforge.net/htmldoc/syntax.html
"
call s:highlight('Comment', s:DeepSkyBlue3, s:clear, s:italic )
call s:highlight('Constant', s:DarkViolet, s:clear, s:none )
call s:highlight('String', s:DarkMagenta, s:clear, s:none )
call s:highlight('Character', s:MediumOrchid1, s:clear, s:none )
call s:highlight('Number', s:SteelBlue1, s:clear, s:none )
call s:highlight('Boolean', s:Yellow1, s:clear, s:none )
call s:highlight('Float', s:SteelBlue1, s:clear, s:none )
call s:highlight('Identifier', s:MistyRose1, s:clear, s:none )
call s:highlight('Function', s:Purple4, s:clear, s:none )
call s:highlight('Statement', s:MediumOrchid1, s:clear, s:bold )
call s:highlight('Conditional', s:SkyBlue1, s:clear, s:bold )
call s:highlight('Repeat', s:Magenta1, s:clear, s:bold )
call s:highlight('Label', s:SkyBlue1, s:clear, s:bold )
call s:highlight('Operator', s:Purple3, s:clear, s:none )
call s:highlight('Keyword', s:Purple3, s:clear, s:none )
call s:highlight('Exception', s:Magenta1, s:clear, s:italic )
call s:highlight('PreProc', s:Grey54, s:clear, s:italic )
call s:highlight('Include', s:Purple4, s:clear, s:italic )
call s:highlight('Define', s:Magenta2, s:clear, s:italic )
call s:highlight('Macro', s:HotPink, s:clear, s:italic )
call s:highlight('PreCondit', s:Purple4, s:clear, s:italic )
call s:highlight('Type', s:MediumOrchid1, s:clear, s:bold )
call s:highlight('StorageClass', s:Purple3, s:clear, s:bold )
call s:highlight('Structure', s:Purple3, s:clear, s:bold )
call s:highlight('Typedef', s:Purple3, s:clear, s:bold )
call s:highlight('Special', s:Grey66, s:clear, s:none )
call s:highlight('SpecialChar', s:MediumOrchid1, s:clear, s:none )
call s:highlight('Delimiter', s:DeepSkyBlue3, s:clear, s:none )
call s:highlight('SpecialComment', s:Grey54, s:clear, s:none )
call s:highlight('Debug', s:Red1, s:clear, s:none )
call s:highlight('Underlined', s:Grey54, s:clear, s:underline )
call s:highlight('Error', s:Red1, s:clear, s:underline )
call s:highlight('Todo', s:Yellow1, s:clear, s:none )
" Interface highlighting
call s:highlight('Normal', s:clear, s:Grey7, s:none )
call s:highlight('Visual', s:clear, s:Grey42, s:none )
call s:highlight('Cursor', s:Grey66, s:clear, s:none )
call s:highlight('LineNr', s:MistyRose1, s:clear, s:none )
call s:highlight('CursorLineNr', s:DarkMagenta, s:clear, s:italic )
" Java syntax highlighting
call s:highlight('javaParen', s:DarkMagenta, s:clear, s:none )
call s:highlight('javaCommentTitle', s:DeepSkyBlue3, s:clear, s:none )
call s:highlight('javaDocParam', s:DeepSkyBlue3, s:clear, s:none )
call s:highlight('javaDocTags', s:DeepSkyBlue3, s:clear, s:none )
call s:highlight('javaScopeDecl', s:Grey66, s:clear, s:none )
call s:highlight('javaStorageClass', s:MediumOrchid1, s:clear, s:none )
" Python syntax highlighting
call s:highlight('pythonFunction', s:Grey66, s:clear, s:none )
call s:highlight('pythonBuiltin', s:Grey66, s:clear, s:italic )
" Vimscript syntax highlighting
call s:highlight('vimOption', s:DarkViolet, s:clear, s:none )
" *NOTE*
"
" The following groups are plug specific and would require the following plugs
" from github in order for the groups to work.
"
" Elm syntax highlighting
" Requires plug: ElmCast/Magenta2-vim
"
call s:highlight('elmTypeDef', s:MediumOrchid1, s:clear, s:bold )
call s:highlight('elmAlias', s:Grey66, s:clear, s:none )
call s:highlight('elmTopLevelDecl', s:SkyBlue1, s:clear, s:bold )
call s:highlight('elmBraces', s:DarkMagenta, s:clear, s:none )
" Elixir syntax highlighting
" Requires plug: elixir-editors/vim-elixir
"
call s:highlight('elixirAlias', s:Magenta2, s:clear, s:italic )
call s:highlight('elixirDefine', s:MediumOrchid1, s:clear, s:none )
call s:highlight('elixirBlockDefinition', s:MediumOrchid1, s:clear, s:none )
call s:highlight('elixirFunctionDeclaration', s:Grey66, s:clear, s:none )
" GOLang syntax highlighting
" Requires plug: fatih/vim-go
"
call s:highlight('goPackage', s:Magenta2, s:clear, s:italic )
call s:highlight('goImport', s:Purple4, s:clear, s:italic )
" Rust syntax highlighting
" Requires plug: rust-lang/rust.vim
"
call s:highlight('rustMacro', s:MediumOrchid1, s:clear, s:none )

View file

@ -0,0 +1,191 @@
" Name: hashpunk
" Author: abnt713
" Maintainer: abnt713
" License: MIT
highlight clear
if exists('syntax_on')
syntax reset
endif
let g:colors_name = 'hashpunk-lapis'
set background=dark
" Dark Meadow Legacy
let s:clear = ['NONE', 'NONE' ]
let s:DarkMagenta = ['90' , '#870087']
let s:Purple4 = ['55' , '#5f00af']
let s:SkyBlue1 = ['117' , '#87afff']
let s:Magenta2 = ['165' , '#d700ff']
let s:MediumOrchid1 = ['207' , '#ff5faf']
" Hashpunk
let s:MainColor = ['110', '#875fff']
let s:ComplementaryColor = ['111', '#8787ff']
let s:Grey0 = ['16', '#000000']
let s:Grey7 = ['233', '#121212']
let s:Grey15 = ['235', '#262626']
let s:Grey19 = ['236', '#303030']
let s:Grey42 = ['242', '#6c6c6c']
let s:Grey54 = ['245', '#505050']
let s:Grey66 = ['248', '#a8a8a8']
let s:Grey74 = ['250', '#bcbcbc']
let s:Grey93 = ['255', '#eeeeee']
" Text style
let s:italic = 'italic'
let s:bold = 'bold'
let s:underline = 'underline'
let s:none = 'NONE'
" Helper function to set up highlight executions
function! s:highlight(group, fg, bg, style)
exec "highlight " . a:group
\ . " ctermfg=" . a:fg[0]
\ . " ctermbg=" . a:bg[0]
\ . " cterm=" . a:style
\ . " guifg=" . a:fg[1]
\ . " guibg=" . a:bg[1]
\ . " gui=" . a:style
endfunction
" Syntax highlighting groups
"
" For reference on what each group does, please refer to this:
" vimdoc.sourceforge.net/htmldoc/syntax.html
"
call s:highlight('Comment', s:Grey42, s:clear, s:italic)
call s:highlight('Constant', s:MainColor, s:clear, s:none)
call s:highlight('String', s:Grey93, s:clear, s:none)
call s:highlight('Character', s:Grey93, s:clear, s:none)
call s:highlight('Number', s:Grey93, s:clear, s:none)
call s:highlight('Boolean', s:ComplementaryColor, s:clear, s:none)
call s:highlight('Float', s:MainColor, s:clear, s:none)
call s:highlight('Identifier', s:MainColor, s:clear, s:none)
call s:highlight('Function', s:MainColor, s:clear, s:none)
call s:highlight('Statement', s:MainColor, s:clear, s:bold)
call s:highlight('Conditional', s:MainColor, s:clear, s:bold)
call s:highlight('Repeat', s:MainColor, s:clear, s:bold)
call s:highlight('Label', s:MainColor, s:clear, s:bold)
call s:highlight('Operator', s:MainColor, s:clear, s:none)
call s:highlight('Keyword', s:MainColor, s:clear, s:none)
call s:highlight('Exception', s:MainColor, s:clear, s:italic)
call s:highlight('PreProc', s:Grey54, s:clear, s:italic)
call s:highlight('Include', s:Grey74, s:clear, s:italic)
call s:highlight('Define', s:Grey66, s:clear, s:italic)
call s:highlight('Macro', s:Grey66, s:clear, s:italic)
call s:highlight('PreCondit', s:MainColor, s:clear, s:italic)
call s:highlight('Type', s:MainColor, s:clear, s:bold)
call s:highlight('StorageClass', s:MainColor, s:clear, s:bold)
call s:highlight('Structure', s:MainColor, s:clear, s:bold)
call s:highlight('Typedef', s:MainColor, s:clear, s:bold)
call s:highlight('Special', s:Grey66, s:clear, s:none)
call s:highlight('SpecialChar', s:MainColor, s:clear, s:none)
call s:highlight('Delimiter', s:MainColor, s:clear, s:none)
call s:highlight('SpecialComment', s:Grey54, s:clear, s:none)
call s:highlight('Debug', s:MainColor, s:clear, s:none)
call s:highlight('Underlined', s:Grey54, s:clear, s:underline)
call s:highlight('Error', s:MainColor, s:clear, s:underline)
call s:highlight('Todo', s:MainColor, s:clear, s:none)
call s:highlight('Directory', s:Grey93, s:clear, s:bold)
call s:highlight('CursorLine', s:MainColor, s:clear, s:bold)
call s:highlight('MatchParen', s:MainColor, s:Grey93, s:none)
call s:highlight('ColorColumn', s:MainColor, s:Grey15, s:none)
" Interface highlighting
call s:highlight('Normal', s:Grey93, s:Grey7, s:none)
call s:highlight('Visual', s:clear, s:Grey0, s:none)
call s:highlight('Cursor', s:clear, s:Grey0, s:none)
call s:highlight('iCursor', s:clear, s:Grey0, s:none)
call s:highlight('LineNr', s:Grey66, s:clear, s:none)
call s:highlight('NonText', s:Grey66, s:clear, s:none)
call s:highlight('CursorLineNr', s:Grey0, s:Grey7, s:none)
call s:highlight('VertSplit', s:Grey15, s:clear, s:none)
" Pmenu
call s:highlight('Pmenu', s:Grey93, s:Grey19, s:none)
call s:highlight('PmenuSel', s:MainColor, s:Grey15, s:none)
" Search
call s:highlight('Search', s:Grey93, s:MainColor, s:none)
" GitDiff
call s:highlight('DiffAdd', s:MainColor, s:Grey93, s:none)
call s:highlight('DiffChange', s:Grey7, s:Grey93, s:none)
call s:highlight('DiffText', s:MainColor, s:Grey74, s:none)
call s:highlight('DiffDelete', s:Grey0, s:MainColor, s:none)
" Git Gutter
call s:highlight('GitGutterAdd', s:Grey93, s:clear, s:none)
call s:highlight('GitGutterChange', s:Grey93, s:clear, s:none)
call s:highlight('GitGutterDelete', s:Grey93, s:clear, s:none)
call s:highlight('GitGutterChangeDelete', s:Grey93, s:clear, s:none)
call s:highlight('SignColumn', s:Grey93, s:clear, s:none)
" Java syntax highlighting
call s:highlight('javaParen', s:MainColor, s:clear, s:none)
call s:highlight('javaCommentTitle', s:Grey42, s:clear, s:none)
call s:highlight('javaDocParam', s:MainColor, s:clear, s:none)
call s:highlight('javaDocTags', s:Grey54, s:clear, s:none)
call s:highlight('javaScopeDecl', s:Grey54, s:clear, s:none)
call s:highlight('javaStorageClass', s:MainColor, s:clear, s:none)
" Python syntax highlighting
call s:highlight('pythonFunction', s:Grey93, s:clear, s:none)
call s:highlight('pythonBuiltin', s:Grey54, s:clear, s:italic)
" Vimscript syntax highlighting
call s:highlight('vimOption', s:Grey93, s:clear, s:none)
" NERDTree
call s:highlight('NERDTreeClosable', s:MainColor, s:clear, s:none)
call s:highlight('NERDTreeOpenable', s:MainColor, s:clear, s:none)
" *NOTE*
"
" The following groups are plug specific and would require the following plugs
" from github in order for the groups to work.
"
" Elm syntax highlighting
" Requires plug: ElmCast/Magenta2-vim
"
call s:highlight('Magenta2TypeDef', s:MediumOrchid1, s:clear, s:bold)
call s:highlight('Magenta2Alias', s:Grey66, s:clear, s:none)
call s:highlight('Magenta2TopLevelDecl', s:SkyBlue1, s:clear, s:bold)
call s:highlight('Magenta2Braces', s:DarkMagenta, s:clear, s:none)
" Elixir syntax highlighting
" Requires plug: elixir-editors/vim-elixir
"
call s:highlight('elixirAlias', s:Magenta2, s:clear, s:italic)
call s:highlight('elixirDefine', s:MediumOrchid1, s:clear, s:none)
call s:highlight('elixirBlockDefinition', s:MediumOrchid1, s:clear, s:none)
call s:highlight('elixirFunctionDeclaration', s:Grey66, s:clear, s:none)
" GOLang syntax highlighting
" Requires plug: fatih/vim-go
"
call s:highlight('goPackage', s:Magenta2, s:clear, s:italic)
call s:highlight('goImport', s:Purple4, s:clear, s:italic)
" Rust syntax highlighting
" Requires plug: rust-lang/rust.vim
"
call s:highlight('rustMacro', s:MediumOrchid1, s:clear, s:none)

View file

@ -0,0 +1,191 @@
" Name: hashpunk
" Author: abnt713
" Maintainer: abnt713
" License: MIT
highlight clear
if exists('syntax_on')
syntax reset
endif
let g:colors_name = 'hashpunk-sweet'
set background=dark
" Dark Meadow Legacy
let s:clear = ['NONE', 'NONE' ]
let s:DarkMagenta = ['90' , '#870087']
let s:Purple4 = ['55' , '#5f00af']
let s:SkyBlue1 = ['117' , '#87afff']
let s:Magenta2 = ['165' , '#d700ff']
let s:MediumOrchid1 = ['207' , '#ff5faf']
" Hashpunk
let s:MainColor = ['161', '#d7005f']
let s:ComplementaryColor = ['162', '#d70087']
let s:Grey0 = ['16', '#000000']
let s:Grey7 = ['233', '#121212']
let s:Grey15 = ['235', '#262626']
let s:Grey19 = ['236', '#303030']
let s:Grey42 = ['242', '#6c6c6c']
let s:Grey54 = ['245', '#505050']
let s:Grey66 = ['248', '#a8a8a8']
let s:Grey74 = ['250', '#bcbcbc']
let s:Grey93 = ['255', '#eeeeee']
" Text style
let s:italic = 'italic'
let s:bold = 'bold'
let s:underline = 'underline'
let s:none = 'NONE'
" Helper function to set up highlight executions
function! s:highlight(group, fg, bg, style)
exec "highlight " . a:group
\ . " ctermfg=" . a:fg[0]
\ . " ctermbg=" . a:bg[0]
\ . " cterm=" . a:style
\ . " guifg=" . a:fg[1]
\ . " guibg=" . a:bg[1]
\ . " gui=" . a:style
endfunction
" Syntax highlighting groups
"
" For reference on what each group does, please refer to this:
" vimdoc.sourceforge.net/htmldoc/syntax.html
"
call s:highlight('Comment', s:Grey42, s:clear, s:italic)
call s:highlight('Constant', s:MainColor, s:clear, s:none)
call s:highlight('String', s:Grey93, s:clear, s:none)
call s:highlight('Character', s:Grey93, s:clear, s:none)
call s:highlight('Number', s:Grey93, s:clear, s:none)
call s:highlight('Boolean', s:ComplementaryColor, s:clear, s:none)
call s:highlight('Float', s:MainColor, s:clear, s:none)
call s:highlight('Identifier', s:MainColor, s:clear, s:none)
call s:highlight('Function', s:MainColor, s:clear, s:none)
call s:highlight('Statement', s:MainColor, s:clear, s:bold)
call s:highlight('Conditional', s:MainColor, s:clear, s:bold)
call s:highlight('Repeat', s:MainColor, s:clear, s:bold)
call s:highlight('Label', s:MainColor, s:clear, s:bold)
call s:highlight('Operator', s:MainColor, s:clear, s:none)
call s:highlight('Keyword', s:MainColor, s:clear, s:none)
call s:highlight('Exception', s:MainColor, s:clear, s:italic)
call s:highlight('PreProc', s:Grey54, s:clear, s:italic)
call s:highlight('Include', s:Grey74, s:clear, s:italic)
call s:highlight('Define', s:Grey66, s:clear, s:italic)
call s:highlight('Macro', s:Grey66, s:clear, s:italic)
call s:highlight('PreCondit', s:MainColor, s:clear, s:italic)
call s:highlight('Type', s:MainColor, s:clear, s:bold)
call s:highlight('StorageClass', s:MainColor, s:clear, s:bold)
call s:highlight('Structure', s:MainColor, s:clear, s:bold)
call s:highlight('Typedef', s:MainColor, s:clear, s:bold)
call s:highlight('Special', s:Grey66, s:clear, s:none)
call s:highlight('SpecialChar', s:MainColor, s:clear, s:none)
call s:highlight('Delimiter', s:MainColor, s:clear, s:none)
call s:highlight('SpecialComment', s:Grey54, s:clear, s:none)
call s:highlight('Debug', s:MainColor, s:clear, s:none)
call s:highlight('Underlined', s:Grey54, s:clear, s:underline)
call s:highlight('Error', s:MainColor, s:clear, s:underline)
call s:highlight('Todo', s:MainColor, s:clear, s:none)
call s:highlight('Directory', s:Grey93, s:clear, s:bold)
call s:highlight('CursorLine', s:MainColor, s:clear, s:bold)
call s:highlight('MatchParen', s:MainColor, s:Grey93, s:none)
call s:highlight('ColorColumn', s:MainColor, s:Grey15, s:none)
" Interface highlighting
call s:highlight('Normal', s:Grey93, s:Grey7, s:none)
call s:highlight('Visual', s:clear, s:Grey0, s:none)
call s:highlight('Cursor', s:clear, s:Grey0, s:none)
call s:highlight('iCursor', s:clear, s:Grey0, s:none)
call s:highlight('LineNr', s:Grey66, s:clear, s:none)
call s:highlight('NonText', s:Grey66, s:clear, s:none)
call s:highlight('CursorLineNr', s:Grey0, s:Grey7, s:none)
call s:highlight('VertSplit', s:Grey15, s:clear, s:none)
" Pmenu
call s:highlight('Pmenu', s:Grey93, s:Grey19, s:none)
call s:highlight('PmenuSel', s:MainColor, s:Grey15, s:none)
" Search
call s:highlight('Search', s:Grey93, s:MainColor, s:none)
" GitDiff
call s:highlight('DiffAdd', s:MainColor, s:Grey93, s:none)
call s:highlight('DiffChange', s:Grey7, s:Grey93, s:none)
call s:highlight('DiffText', s:MainColor, s:Grey74, s:none)
call s:highlight('DiffDelete', s:Grey0, s:MainColor, s:none)
" Git Gutter
call s:highlight('GitGutterAdd', s:Grey93, s:clear, s:none)
call s:highlight('GitGutterChange', s:Grey93, s:clear, s:none)
call s:highlight('GitGutterDelete', s:Grey93, s:clear, s:none)
call s:highlight('GitGutterChangeDelete', s:Grey93, s:clear, s:none)
call s:highlight('SignColumn', s:Grey93, s:clear, s:none)
" Java syntax highlighting
call s:highlight('javaParen', s:MainColor, s:clear, s:none)
call s:highlight('javaCommentTitle', s:Grey42, s:clear, s:none)
call s:highlight('javaDocParam', s:MainColor, s:clear, s:none)
call s:highlight('javaDocTags', s:Grey54, s:clear, s:none)
call s:highlight('javaScopeDecl', s:Grey54, s:clear, s:none)
call s:highlight('javaStorageClass', s:MainColor, s:clear, s:none)
" Python syntax highlighting
call s:highlight('pythonFunction', s:Grey93, s:clear, s:none)
call s:highlight('pythonBuiltin', s:Grey54, s:clear, s:italic)
" Vimscript syntax highlighting
call s:highlight('vimOption', s:Grey93, s:clear, s:none)
" NERDTree
call s:highlight('NERDTreeClosable', s:MainColor, s:clear, s:none)
call s:highlight('NERDTreeOpenable', s:MainColor, s:clear, s:none)
" *NOTE*
"
" The following groups are plug specific and would require the following plugs
" from github in order for the groups to work.
"
" Elm syntax highlighting
" Requires plug: ElmCast/Magenta2-vim
"
call s:highlight('Magenta2TypeDef', s:MediumOrchid1, s:clear, s:bold)
call s:highlight('Magenta2Alias', s:Grey66, s:clear, s:none)
call s:highlight('Magenta2TopLevelDecl', s:SkyBlue1, s:clear, s:bold)
call s:highlight('Magenta2Braces', s:DarkMagenta, s:clear, s:none)
" Elixir syntax highlighting
" Requires plug: elixir-editors/vim-elixir
"
call s:highlight('elixirAlias', s:Magenta2, s:clear, s:italic)
call s:highlight('elixirDefine', s:MediumOrchid1, s:clear, s:none)
call s:highlight('elixirBlockDefinition', s:MediumOrchid1, s:clear, s:none)
call s:highlight('elixirFunctionDeclaration', s:Grey66, s:clear, s:none)
" GOLang syntax highlighting
" Requires plug: fatih/vim-go
"
call s:highlight('goPackage', s:Magenta2, s:clear, s:italic)
call s:highlight('goImport', s:Purple4, s:clear, s:italic)
" Rust syntax highlighting
" Requires plug: rust-lang/rust.vim
"
call s:highlight('rustMacro', s:MediumOrchid1, s:clear, s:none)

202
nvim/colors/hashpunk.vim Normal file
View file

@ -0,0 +1,202 @@
" Name: hashpunk
" Author: abnt713
" Maintainer: abnt713
" License: MIT
highlight clear
if exists('syntax_on')
syntax reset
endif
let g:colors_name = 'hashpunk'
set background=dark
" Dark Meadow Legacy
let s:clear = ['NONE', 'NONE' ]
let s:DarkMagenta = ['90' , '#870087']
let s:Purple4 = ['55' , '#5f00af']
let s:SkyBlue1 = ['117' , '#87afff']
let s:Magenta3 = ['127' , '#d700ff']
let s:Magenta2 = ['165' , '#d700ff']
let s:MediumOrchid1 = ['207' , '#ff5faf']
let s:MediumOrchid3 = ['133' , '#ff5faf']
let s:HotPink2 = ['169' , '#ff5faf']
let s:Orange = ['209' , '#ff875f']
" Hashpunk
let s:MainColor = ['197', '#ff3366']
let s:ComplementaryColor = ['198', '#fe0040']
let s:Grey0 = ['16', '#000000']
let s:Grey7 = ['233', '#121212']
let s:Grey15 = ['235', '#262626']
let s:Grey19 = ['236', '#303030']
let s:Grey42 = ['242', '#6c6c6c']
let s:Grey54 = ['245', '#505050']
let s:Grey66 = ['248', '#a8a8a8']
let s:Grey74 = ['250', '#bcbcbc']
let s:Grey93 = ['255', '#eeeeee']
" Text style
let s:italic = 'italic'
let s:bold = 'bold'
let s:underline = 'underline'
let s:none = 'NONE'
" Helper function to set up highlight executions
function! s:highlight(group, fg, bg, style)
exec "highlight " . a:group
\ . " ctermfg=" . a:fg[0]
\ . " ctermbg=" . a:bg[0]
\ . " cterm=" . a:style
\ . " guifg=" . a:fg[1]
\ . " guibg=" . a:bg[1]
\ . " gui=" . a:style
endfunction
" Syntax highlighting groups
"
" For reference on what each group does, please refer to this:
" vimdoc.sourceforge.net/htmldoc/syntax.html
"
call s:highlight('Comment', s:HotPink2, s:clear, s:italic)
call s:highlight('Constant', s:MainColor, s:clear, s:none)
call s:highlight('String', s:ComplementaryColor, s:clear, s:none)
call s:highlight('Character', s:ComplementaryColor, s:clear, s:none)
call s:highlight('Number', s:ComplementaryColor, s:clear, s:none)
call s:highlight('Boolean', s:ComplementaryColor, s:clear, s:none)
call s:highlight('Float', s:ComplementaryColor, s:clear, s:none)
call s:highlight('Identifier', s:MainColor, s:clear, s:none)
call s:highlight('Function', s:Grey74, s:clear, s:none)
call s:highlight('Statement', s:MainColor, s:clear, s:none)
call s:highlight('Conditional', s:MainColor, s:clear, s:bold)
call s:highlight('Repeat', s:MainColor, s:clear, s:bold)
call s:highlight('Label', s:MainColor, s:clear, s:bold)
call s:highlight('Operator', s:MainColor, s:clear, s:none)
call s:highlight('Keyword', s:MainColor, s:clear, s:none)
call s:highlight('Exception', s:MainColor, s:clear, s:italic)
call s:highlight('PreProc', s:Grey54, s:clear, s:italic)
call s:highlight('Include', s:Grey74, s:clear, s:italic)
call s:highlight('Define', s:Grey66, s:clear, s:italic)
call s:highlight('Macro', s:Grey66, s:clear, s:italic)
call s:highlight('PreCondit', s:MainColor, s:clear, s:italic)
call s:highlight('Type', s:MainColor, s:clear, s:none)
call s:highlight('StorageClass', s:MainColor, s:clear, s:none)
call s:highlight('Structure', s:MainColor, s:clear, s:bold)
call s:highlight('Typedef', s:MainColor, s:clear, s:bold)
call s:highlight('Special', s:Grey66, s:clear, s:none)
call s:highlight('SpecialChar', s:MainColor, s:clear, s:none)
call s:highlight('Delimiter', s:MainColor, s:clear, s:none)
call s:highlight('SpecialComment', s:Grey66, s:clear, s:none)
call s:highlight('Debug', s:MainColor, s:clear, s:none)
call s:highlight('Underlined', s:Grey54, s:clear, s:underline)
call s:highlight('Error', s:MainColor, s:clear, s:underline)
call s:highlight('Todo', s:ComplementaryColor, s:clear, s:bold)
call s:highlight('Directory', s:Grey93, s:clear, s:bold)
call s:highlight('CursorLine', s:MainColor, s:clear, s:bold)
call s:highlight('MatchParen', s:MainColor, s:Grey93, s:none)
call s:highlight('ColorColumn', s:MainColor, s:Grey15, s:none)
" Interface highlighting
call s:highlight('Normal', s:Grey93, s:Grey7, s:none)
call s:highlight('Visual', s:Grey93, s:ComplementaryColor, s:none)
call s:highlight('Cursor', s:clear, s:Grey0, s:none)
call s:highlight('iCursor', s:clear, s:Grey0, s:none)
call s:highlight('LineNr', s:Grey66, s:clear, s:none)
call s:highlight('NonText', s:Grey66, s:clear, s:none)
call s:highlight('CursorLineNr', s:Grey0, s:Grey7, s:none)
call s:highlight('VertSplit', s:Grey15, s:clear, s:none)
" Pmenu
call s:highlight('Pmenu', s:Grey93, s:Grey19, s:none)
call s:highlight('PmenuSel', s:MainColor, s:Grey15, s:none)
" Search
call s:highlight('Search', s:Grey93, s:MainColor, s:none)
" GitDiff
call s:highlight('DiffAdd', s:MainColor, s:Grey93, s:none)
call s:highlight('DiffChange', s:Grey7, s:Grey93, s:none)
call s:highlight('DiffText', s:MainColor, s:Grey74, s:none)
call s:highlight('DiffDelete', s:Grey0, s:MainColor, s:none)
" Git Gutter
call s:highlight('GitGutterAdd', s:Grey93, s:clear, s:none)
call s:highlight('GitGutterChange', s:Grey93, s:clear, s:none)
call s:highlight('GitGutterDelete', s:Grey93, s:clear, s:none)
call s:highlight('GitGutterChangeDelete', s:Grey93, s:clear, s:none)
call s:highlight('SignColumn', s:Grey93, s:clear, s:none)
" CPP
call s:highlight('cppStructure', s:MainColor, s:clear, s:none)
call s:highlight('cppStatement', s:MainColor, s:clear, s:none)
call s:highlight('cType', s:MainColor, s:clear, s:none)
call s:highlight('cRepeat', s:MainColor, s:clear, s:none)
call s:highlight('cppSTLtype', s:MainColor, s:clear, s:none)
" Java syntax highlighting
call s:highlight('javaParen', s:MainColor, s:clear, s:none)
call s:highlight('javaCommentTitle', s:Grey42, s:clear, s:none)
call s:highlight('javaDocParam', s:MainColor, s:clear, s:none)
call s:highlight('javaDocTags', s:Grey54, s:clear, s:none)
call s:highlight('javaScopeDecl', s:Grey54, s:clear, s:none)
call s:highlight('javaStorageClass', s:MainColor, s:clear, s:none)
" Python syntax highlighting
call s:highlight('pythonFunction', s:Grey93, s:clear, s:none)
call s:highlight('pythonBuiltin', s:Grey54, s:clear, s:italic)
" Vimscript syntax highlighting
call s:highlight('vimOption', s:Grey93, s:clear, s:none)
" NERDTree
call s:highlight('NERDTreeClosable', s:MainColor, s:clear, s:none)
call s:highlight('NERDTreeOpenable', s:MainColor, s:clear, s:none)
" *NOTE*
"
" The following groups are plug specific and would require the following plugs
" from github in order for the groups to work.
"
" Elm syntax highlighting
" Requires plug: ElmCast/Magenta2-vim
"
call s:highlight('Magenta2TypeDef', s:MediumOrchid1, s:clear, s:bold)
call s:highlight('Magenta2Alias', s:Grey66, s:clear, s:none)
call s:highlight('Magenta2TopLevelDecl', s:SkyBlue1, s:clear, s:bold)
call s:highlight('Magenta2Braces', s:DarkMagenta, s:clear, s:none)
" Elixir syntax highlighting
" Requires plug: elixir-editors/vim-elixir
"
call s:highlight('elixirAlias', s:Magenta2, s:clear, s:italic)
call s:highlight('elixirDefine', s:MediumOrchid1, s:clear, s:none)
call s:highlight('elixirBlockDefinition', s:MediumOrchid1, s:clear, s:none)
call s:highlight('elixirFunctionDeclaration', s:Grey66, s:clear, s:none)
" GOLang syntax highlighting
" Requires plug: fatih/vim-go
"
call s:highlight('goPackage', s:Magenta2, s:clear, s:italic)
call s:highlight('goImport', s:Purple4, s:clear, s:italic)
" Rust syntax highlighting
" Requires plug: rust-lang/rust.vim
"
call s:highlight('rustMacro', s:MediumOrchid1, s:clear, s:none)

View file

@ -0,0 +1,218 @@
" Vim color file
"
" Author: Tomas Restrepo <tomas@winterdom.com>
"
" Note: Based on the monokai theme for textmate
" by Wimer Hazenberg and its darker variant
" by Hamish Stuart Macpherson
"
hi clear
set background=dark
if version > 580
" no guarantees for version 5.8 and below, but this makes it stop
" complaining
hi clear
if exists("syntax_on")
syntax reset
endif
endif
let g:colors_name="molokai"
if exists("g:molokai_original")
let s:molokai_original = g:molokai_original
else
let s:molokai_original = 0
endif
hi Boolean guifg=#AE81FF
hi Character guifg=#E6DB74
hi Number guifg=#AE81FF
hi String guifg=#E6DB74
hi Conditional guifg=#F92672 gui=bold
hi Constant guifg=#AE81FF gui=bold
hi Cursor guifg=#000000 guibg=#F8F8F0
hi Debug guifg=#BCA3A3 gui=bold
hi Define guifg=#66D9EF
hi Delimiter guifg=#8F8F8F
hi DiffAdd guibg=#13354A
hi DiffChange guifg=#89807D guibg=#4C4745
hi DiffDelete guifg=#960050 guibg=#1E0010
hi DiffText guibg=#4C4745 gui=italic,bold
hi Directory guifg=#A6E22E gui=bold
hi Error guifg=#960050 guibg=#1E0010
hi ErrorMsg guifg=#F92672 guibg=#232526 gui=bold
hi Exception guifg=#A6E22E gui=bold
hi Float guifg=#AE81FF
hi FoldColumn guifg=#465457 guibg=#000000
hi Folded guifg=#465457 guibg=#000000
hi Function guifg=#A6E22E
hi Identifier guifg=#FD971F
hi Ignore guifg=#808080 guibg=bg
hi IncSearch guifg=#C4BE89 guibg=#000000
hi Keyword guifg=#F92672 gui=bold
hi Label guifg=#E6DB74 gui=none
hi Macro guifg=#C4BE89 gui=italic
hi SpecialKey guifg=#66D9EF gui=italic
hi MatchParen guifg=#000000 guibg=#FD971F gui=bold
hi ModeMsg guifg=#E6DB74
hi MoreMsg guifg=#E6DB74
hi Operator guifg=#F92672
" complete menu
hi Pmenu guifg=#66D9EF guibg=#000000
hi PmenuSel guibg=#808080
hi PmenuSbar guibg=#080808
hi PmenuThumb guifg=#66D9EF
hi PreCondit guifg=#A6E22E gui=bold
hi PreProc guifg=#A6E22E
hi Question guifg=#66D9EF
hi Repeat guifg=#F92672 gui=bold
hi Search guifg=#FFFFFF guibg=#455354
" marks column
hi SignColumn guifg=#A6E22E guibg=#232526
hi SpecialChar guifg=#F92672 gui=bold
hi SpecialComment guifg=#465457 gui=bold
hi Special guifg=#66D9EF guibg=bg gui=italic
hi SpecialKey guifg=#888A85 gui=italic
if has("spell")
hi SpellBad guisp=#FF0000 gui=undercurl
hi SpellCap guisp=#7070F0 gui=undercurl
hi SpellLocal guisp=#70F0F0 gui=undercurl
hi SpellRare guisp=#FFFFFF gui=undercurl
endif
hi Statement guifg=#F92672 gui=bold
hi StatusLine guifg=#455354 guibg=fg
hi StatusLineNC guifg=#808080 guibg=#080808
hi StorageClass guifg=#FD971F gui=italic
hi Structure guifg=#66D9EF
hi Tag guifg=#F92672 gui=italic
hi Title guifg=#ef5939
hi Todo guifg=#FFFFFF guibg=bg gui=bold
hi Typedef guifg=#66D9EF
hi Type guifg=#66D9EF gui=none
hi Underlined guifg=#808080 gui=underline
hi VertSplit guifg=#808080 guibg=#080808 gui=bold
hi VisualNOS guibg=#403D3D
hi Visual guibg=#403D3D
hi WarningMsg guifg=#FFFFFF guibg=#333333 gui=bold
hi WildMenu guifg=#66D9EF guibg=#000000
if s:molokai_original == 1
hi Normal guifg=#F8F8F2 guibg=#272822
hi Comment guifg=#75715E
hi CursorLine guibg=#3E3D32
hi CursorColumn guibg=#3E3D32
hi LineNr guifg=#BCBCBC guibg=#3B3A32
hi NonText guifg=#BCBCBC guibg=#3B3A32
else
hi Normal guifg=#F8F8F2 guibg=#1B1D1E
hi Comment guifg=#465457
hi CursorLine guibg=#293739
hi CursorColumn guibg=#293739
hi LineNr guifg=#BCBCBC guibg=#232526
hi NonText guifg=#BCBCBC guibg=#232526
end
"
" Support for 256-color terminal
"
if &t_Co > 255
hi Boolean ctermfg=135
hi Character ctermfg=144
hi Number ctermfg=135
hi String ctermfg=144
hi Conditional ctermfg=161 cterm=bold
hi Constant ctermfg=135 cterm=bold
hi Cursor ctermfg=16 ctermbg=253
hi Debug ctermfg=225 cterm=bold
hi Define ctermfg=81
hi Delimiter ctermfg=241
hi DiffAdd ctermbg=24
hi DiffChange ctermfg=181 ctermbg=239
hi DiffDelete ctermfg=162 ctermbg=53
hi DiffText ctermbg=102 cterm=bold
hi Directory ctermfg=118 cterm=bold
hi Error ctermfg=219 ctermbg=89
hi ErrorMsg ctermfg=199 ctermbg=16 cterm=bold
hi Exception ctermfg=118 cterm=bold
hi Float ctermfg=135
hi FoldColumn ctermfg=67 ctermbg=16
hi Folded ctermfg=67 ctermbg=16
hi Function ctermfg=118
hi Identifier ctermfg=208
hi Ignore ctermfg=244 ctermbg=232
hi IncSearch ctermfg=193 ctermbg=16
hi Keyword ctermfg=161 cterm=bold
hi Label ctermfg=229 cterm=none
hi Macro ctermfg=193
hi SpecialKey ctermfg=81
hi MatchParen ctermfg=16 ctermbg=208 cterm=bold
hi ModeMsg ctermfg=229
hi MoreMsg ctermfg=229
hi Operator ctermfg=161
" complete menu
hi Pmenu ctermfg=81 ctermbg=16
hi PmenuSel ctermbg=244
hi PmenuSbar ctermbg=232
hi PmenuThumb ctermfg=81
hi PreCondit ctermfg=118 cterm=bold
hi PreProc ctermfg=118
hi Question ctermfg=81
hi Repeat ctermfg=161 cterm=bold
hi Search ctermfg=253 ctermbg=66
" marks column
hi SignColumn ctermfg=118 ctermbg=235
hi SpecialChar ctermfg=161 cterm=bold
hi SpecialComment ctermfg=245 cterm=bold
hi Special ctermfg=81 ctermbg=232
hi SpecialKey ctermfg=245
hi Statement ctermfg=161 cterm=bold
hi StatusLine ctermfg=238 ctermbg=253
hi StatusLineNC ctermfg=244 ctermbg=232
hi StorageClass ctermfg=208
hi Structure ctermfg=81
hi Tag ctermfg=161
hi Title ctermfg=166
hi Todo ctermfg=231 ctermbg=232 cterm=bold
hi Typedef ctermfg=81
hi Type ctermfg=81 cterm=none
hi Underlined ctermfg=244 cterm=underline
hi VertSplit ctermfg=244 ctermbg=232 cterm=bold
hi VisualNOS ctermbg=238
hi Visual ctermbg=235
hi WarningMsg ctermfg=231 ctermbg=238 cterm=bold
hi WildMenu ctermfg=81 ctermbg=16
" hi Normal ctermfg=252 ctermbg=233
" hi Comment ctermfg=59
" hi CursorLine ctermbg=234 cterm=none
" hi CursorColumn ctermbg=234
" hi LineNr ctermfg=250 ctermbg=234
" hi NonText ctermfg=250 ctermbg=234
hi Normal ctermfg=15
hi Comment ctermfg=248
hi CursorLine ctermbg=237
hi CursorColumn ctermbg=237
hi LineNr ctermfg=250 ctermbg=237
hi NonText ctermfg=250
end

211
nvim/colors/molokai.vim Normal file
View file

@ -0,0 +1,211 @@
" Vim color file
"
" Author: Tomas Restrepo <tomas@winterdom.com>
"
" Note: Based on the monokai theme for textmate
" by Wimer Hazenberg and its darker variant
" by Hamish Stuart Macpherson
"
hi clear
set background=dark
if version > 580
" no guarantees for version 5.8 and below, but this makes it stop
" complaining
hi clear
if exists("syntax_on")
syntax reset
endif
endif
let g:colors_name="molokai"
if exists("g:molokai_original")
let s:molokai_original = g:molokai_original
else
let s:molokai_original = 0
endif
hi Boolean guifg=#AE81FF
hi Character guifg=#E6DB74
hi Number guifg=#AE81FF
hi String guifg=#E6DB74
hi Conditional guifg=#F92672 gui=bold
hi Constant guifg=#AE81FF gui=bold
hi Cursor guifg=#000000 guibg=#F8F8F0
hi Debug guifg=#BCA3A3 gui=bold
hi Define guifg=#66D9EF
hi Delimiter guifg=#8F8F8F
hi DiffAdd guibg=#13354A
hi DiffChange guifg=#89807D guibg=#4C4745
hi DiffDelete guifg=#960050 guibg=#1E0010
hi DiffText guibg=#4C4745 gui=italic,bold
hi Directory guifg=#A6E22E gui=bold
hi Error guifg=#960050 guibg=#1E0010
hi ErrorMsg guifg=#F92672 guibg=#232526 gui=bold
hi Exception guifg=#A6E22E gui=bold
hi Float guifg=#AE81FF
hi FoldColumn guifg=#465457 guibg=#000000
hi Folded guifg=#465457 guibg=#000000
hi Function guifg=#A6E22E
hi Identifier guifg=#FD971F
hi Ignore guifg=#808080 guibg=bg
hi IncSearch guifg=#C4BE89 guibg=#000000
hi Keyword guifg=#F92672 gui=bold
hi Label guifg=#E6DB74 gui=none
hi Macro guifg=#C4BE89 gui=italic
hi SpecialKey guifg=#66D9EF gui=italic
hi MatchParen guifg=#000000 guibg=#FD971F gui=bold
hi ModeMsg guifg=#E6DB74
hi MoreMsg guifg=#E6DB74
hi Operator guifg=#F92672
" complete menu
hi Pmenu guifg=#66D9EF guibg=#000000
hi PmenuSel guibg=#808080
hi PmenuSbar guibg=#080808
hi PmenuThumb guifg=#66D9EF
hi PreCondit guifg=#A6E22E gui=bold
hi PreProc guifg=#A6E22E
hi Question guifg=#66D9EF
hi Repeat guifg=#F92672 gui=bold
hi Search guifg=#FFFFFF guibg=#455354
" marks column
hi SignColumn guifg=#A6E22E guibg=#232526
hi SpecialChar guifg=#F92672 gui=bold
hi SpecialComment guifg=#465457 gui=bold
hi Special guifg=#66D9EF guibg=bg gui=italic
hi SpecialKey guifg=#888A85 gui=italic
if has("spell")
hi SpellBad guisp=#FF0000 gui=undercurl
hi SpellCap guisp=#7070F0 gui=undercurl
hi SpellLocal guisp=#70F0F0 gui=undercurl
hi SpellRare guisp=#FFFFFF gui=undercurl
endif
hi Statement guifg=#F92672 gui=bold
hi StatusLine guifg=#455354 guibg=fg
hi StatusLineNC guifg=#808080 guibg=#080808
hi StorageClass guifg=#FD971F gui=italic
hi Structure guifg=#66D9EF
hi Tag guifg=#F92672 gui=italic
hi Title guifg=#ef5939
hi Todo guifg=#FFFFFF guibg=bg gui=bold
hi Typedef guifg=#66D9EF
hi Type guifg=#66D9EF gui=none
hi Underlined guifg=#808080 gui=underline
hi VertSplit guifg=#808080 guibg=#080808 gui=bold
hi VisualNOS guibg=#403D3D
hi Visual guibg=#403D3D
hi WarningMsg guifg=#FFFFFF guibg=#333333 gui=bold
hi WildMenu guifg=#66D9EF guibg=#000000
if s:molokai_original == 1
hi Normal guifg=#F8F8F2 guibg=#272822
hi Comment guifg=#75715E
hi CursorLine guibg=#3E3D32
hi CursorColumn guibg=#3E3D32
hi LineNr guifg=#BCBCBC guibg=#3B3A32
hi NonText guifg=#BCBCBC guibg=#3B3A32
else
hi Normal guifg=#F8F8F2 guibg=#1B1D1E
hi Comment guifg=#465457
hi CursorLine guibg=#293739
hi CursorColumn guibg=#293739
hi LineNr guifg=#BCBCBC guibg=#232526
hi NonText guifg=#BCBCBC guibg=#232526
end
"
" Support for 256-color terminal
"
if &t_Co > 255
hi Boolean ctermfg=135
hi Character ctermfg=144
hi Number ctermfg=135
hi String ctermfg=144
hi Conditional ctermfg=161 cterm=bold
hi Constant ctermfg=135 cterm=bold
hi Cursor ctermfg=16 ctermbg=253
hi Debug ctermfg=225 cterm=bold
hi Define ctermfg=81
hi Delimiter ctermfg=241
hi DiffAdd ctermbg=24
hi DiffChange ctermfg=181 ctermbg=239
hi DiffDelete ctermfg=162 ctermbg=53
hi DiffText ctermbg=102 cterm=bold
hi Directory ctermfg=118 cterm=bold
hi Error ctermfg=219 ctermbg=89
hi ErrorMsg ctermfg=199 ctermbg=16 cterm=bold
hi Exception ctermfg=118 cterm=bold
hi Float ctermfg=135
hi FoldColumn ctermfg=67 ctermbg=16
hi Folded ctermfg=67 ctermbg=16
hi Function ctermfg=118
hi Identifier ctermfg=208
hi Ignore ctermfg=244 ctermbg=232
hi IncSearch ctermfg=193 ctermbg=16
hi Keyword ctermfg=161 cterm=bold
hi Label ctermfg=229 cterm=none
hi Macro ctermfg=193
hi SpecialKey ctermfg=81
hi MatchParen ctermfg=16 ctermbg=208 cterm=bold
hi ModeMsg ctermfg=229
hi MoreMsg ctermfg=229
hi Operator ctermfg=161
" complete menu
hi Pmenu ctermfg=81 ctermbg=16
hi PmenuSel ctermbg=244
hi PmenuSbar ctermbg=232
hi PmenuThumb ctermfg=81
hi PreCondit ctermfg=118 cterm=bold
hi PreProc ctermfg=118
hi Question ctermfg=81
hi Repeat ctermfg=161 cterm=bold
hi Search ctermfg=253 ctermbg=66
" marks column
hi SignColumn ctermfg=118 ctermbg=235
hi SpecialChar ctermfg=161 cterm=bold
hi SpecialComment ctermfg=245 cterm=bold
hi Special ctermfg=81 ctermbg=232
hi SpecialKey ctermfg=245
hi Statement ctermfg=161 cterm=bold
hi StatusLine ctermfg=238 ctermbg=253
hi StatusLineNC ctermfg=244 ctermbg=232
hi StorageClass ctermfg=208
hi Structure ctermfg=81
hi Tag ctermfg=161
hi Title ctermfg=166
hi Todo ctermfg=231 ctermbg=232 cterm=bold
hi Typedef ctermfg=81
hi Type ctermfg=81 cterm=none
hi Underlined ctermfg=244 cterm=underline
hi VertSplit ctermfg=244 ctermbg=232 cterm=bold
hi VisualNOS ctermbg=238
hi Visual ctermbg=235
hi WarningMsg ctermfg=231 ctermbg=238 cterm=bold
hi WildMenu ctermfg=81 ctermbg=16
hi Normal ctermfg=252 ctermbg=233
hi Comment ctermfg=59
hi CursorLine ctermbg=234 cterm=none
hi CursorColumn ctermbg=234
hi LineNr ctermfg=250 ctermbg=234
hi NonText ctermfg=250 ctermbg=234
end

51
nvim/init.vim Normal file
View file

@ -0,0 +1,51 @@
set rnu nu
set et sw=4 ts=4
set tw=120
set smartcase ignorecase
set colorcolumn=120
set wildmode=longest,list,full
set wildmenu
set nofoldenable
colorscheme hashpunk
"call plug#begin('~/.config/nvim/vim_plug_plugins')
"Plug 'numirias/semshi'
"Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
""Plug 'deoplete-plugins/deoplete-jedi'
"Plug 'Shougo/echodoc'
"Plug 'lionawurscht/deoplete-biblatex'
"Plug 'fszymanski/deoplete-emoji'
"Plug 'deoplete-plugins/deoplete-clang'
"Plug 'sebastianmarkow/deoplete-rust'
"" Plug 'Shougo/defx.nvim', { 'do': ':UpdateRemotePlugins' }
"call plug#end()
"let g:deoplete#sources#rust#racer_binary='/usr/bin/racer'
"let g:deoplete#enable_at_startup = 1
"let g:echodoc#enable_at_startup = 1
set completeopt-=preview
" Hide '--- INSERT ---' line for echodoc to work
set noshowmode
"function MyCustomHighlights()
" hi semshiLocal ctermfg=250 guifg=#ff875f
" hi semshiGlobal ctermfg=197 guifg=#ffaf00 cterm=NONE gui=NONE
" hi semshiImported ctermfg=248 guifg=#ffaf00 cterm=NONE gui=NONE
" hi semshiParameter ctermfg=250 guifg=#5fafff
" hi semshiParameterUnused ctermfg=248 guifg=#87d7ff cterm=underline gui=underline
" hi semshiFree ctermfg=250 guifg=#ffafd7
" hi semshiBuiltin ctermfg=197 guifg=#ff5fff
" hi semshiAttribute ctermfg=250 guifg=#00ffaf
" hi semshiSelf ctermfg=197 guifg=#b2b2b2
" hi semshiUnresolved ctermfg=197 guifg=#ffff00 cterm=underline gui=underline
" hi semshiSelected ctermfg=NONE guifg=#ffffff ctermbg=NONE guibg=NONE cterm=underline gui=underline
"
" hi semshiErrorSign ctermfg=248 guifg=#ffffff ctermbg=198 guibg=#d70000
" hi semshiErrorChar ctermfg=248 guifg=#ffffff ctermbg=53 guibg=#d70000
" " To avoid flicker when using semshi
" set signcolumn=yes
"endfunction
"autocmd FileType python call MyCustomHighlights()