54 lines
1.4 KiB
Lua
54 lines
1.4 KiB
Lua
local vim = _G["vim"]
|
|
|
|
vim.cmd([[
|
|
|
|
function! AdaptColorscheme()
|
|
highlight clear CursorLine
|
|
highlight Normal guibg=none ctermbg=none
|
|
highlight LineNr guibg=none ctermbg=none
|
|
highlight Folded guibg=none ctermbg=none
|
|
highlight NonText guibg=none ctermbg=none
|
|
highlight SpecialKey guibg=none ctermbg=none
|
|
highlight VertSplit guibg=none ctermbg=none
|
|
highlight SignColumn guibg=none ctermbg=none
|
|
endfunction
|
|
autocmd ColorScheme * call AdaptColorscheme()
|
|
|
|
colorscheme molokai
|
|
|
|
hi LineNr guifg=#aaaaaa
|
|
hi Visual guibg=#555555
|
|
hi Folded guibg=NONE guifg=#aaaaaa
|
|
|
|
hi Identifier guifg=#eeeeee
|
|
|
|
highlight ExtraWhitespace guibg=grey
|
|
match ExtraWhitespace /\s\+$/
|
|
|
|
" Agnostic
|
|
syntax match AgnosticMath /[!+-?=%*^><]/
|
|
hi def link AgnosticMath Include
|
|
syntax match AgnosticPunct /[,.;._]/
|
|
hi def link AgnosticPunct Operator
|
|
syntax match AgnosticBrackets /[{}()]/
|
|
hi def link AgnosticBrackets Define
|
|
syntax match AgnosticQuote /["'`]/
|
|
hi def link AgnosticQuote String
|
|
syntax match AgnosticNumber /[0-9]/
|
|
hi def link AgnosticNumber Number
|
|
syntax region MyString start="'" end="'"
|
|
highlight link MyString String
|
|
syntax region MyString2 start="\"" end="\""
|
|
highlight link MyString2 String
|
|
|
|
|
|
" plugins
|
|
|
|
hi illuminatedWord cterm=underline gui=underline
|
|
|
|
highlight GitGutterDelete guifg=#ff2222 ctermfg=1
|
|
highlight GitGutterChange guifg=#bbbb00 ctermfg=3
|
|
highlight GitGutterAdd guifg=#009900 ctermfg=2
|
|
|
|
]])
|
|
|