<commit_before>" Fine tune colorscheme for lightline
let s:palette = g:lightline#colorscheme#onedark#palette
let s:palette.insert.left = [ ['darkestcyan', 'white', 'bold'], ['white', 'darkblue'] ]
let s:palette.insert.right = [ [ 'darkestcyan', 'mediumcyan' ], [ 'mediumcyan', 'darkblue' ], [ 'mediumcyan', 'darkestblue' ] ]
let s:palette.insert.middle = [ [ 'mediumcyan', 'darkestblue' ] ]

let s:colors = onedark#GetColors()
let s:cursor_grey = s:colors.cursor_grey.cterm
let s:black = s:colors.black.cterm

for key in keys(s:palette)
    let s:value = s:palette[key]
    for subkey in keys(s:value)
        for i in s:value[subkey]
            if len(i) > 3
                if i[3] == s:cursor_grey | let i[3] = '238' | endif
                if i[3] == s:black | let i[3] = '236' | endif
            endif
        endfor
    endfor
    let s:palette[key] = s:value
endfor

let g:lightline#colorscheme#onedark#palette = lightline#colorscheme#fill(s:palette)

" Fine tune colorscheme for hlsearch
call onedark#set_highlight("Search", { "fg": onedark#GetColors().yellow, "bg": onedark#GetColors().comment_grey })
call onedark#set_highlight("IncSearch", { "fg": onedark#GetColors().black, "bg": onedark#GetColors().yellow })<commit_msg>vim: Fine tune colorscheme for syntax highlight<commit_after>" Fine tune colorscheme for lightline
let s:palette = g:lightline#colorscheme#onedark#palette
let s:palette.insert.left = [ ['darkestcyan', 'white', 'bold'], ['white', 'darkblue'] ]
let s:palette.insert.right = [ [ 'darkestcyan', 'mediumcyan' ], [ 'mediumcyan', 'darkblue' ], [ 'mediumcyan', 'darkestblue' ] ]
let s:palette.insert.middle = [ [ 'mediumcyan', 'darkestblue' ] ]

let s:colors = onedark#GetColors()
let s:cursor_grey = s:colors.cursor_grey.cterm
let s:black = s:colors.black.cterm

for key in keys(s:palette)
    let s:value = s:palette[key]
    for subkey in keys(s:value)
        for i in s:value[subkey]
            if len(i) > 3
                if i[3] == s:cursor_grey | let i[3] = '238' | endif
                if i[3] == s:black | let i[3] = '236' | endif
            endif
        endfor
    endfor
    let s:palette[key] = s:value
endfor

let g:lightline#colorscheme#onedark#palette = lightline#colorscheme#fill(s:palette)

" Fine tune colorscheme for hlsearch
call onedark#set_highlight("Search", { "fg": onedark#GetColors().yellow, "bg": onedark#GetColors().comment_grey })
call onedark#set_highlight("IncSearch", { "fg": onedark#GetColors().black, "bg": onedark#GetColors().yellow })

" Fine tune colorscheme for syntax highlight
call onedark#set_highlight("Macro", { "fg": onedark#GetColors().cyan })
{'fraction_non_alphanumeric': 0.15446224256292906, 'fraction_numerical': 0.008390541571319604, 'mean_word_length': 4.246, 'pattern_counts': {'":': 9, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2618887', 'n_tokens_mistral': 978, 'n_tokens_neox': 948, 'n_words': 208}