published
updated
_ repositories
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
_ repositories
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
published
updated
2 repositories
12
vim.o.background = ""vim.cmd.colorscheme ""NORMALinit.luaunixutf-80%0:2
123456789101112
" Returns true if the color hex value is lightfunction! IsHexColorLight(color) abortlet l:raw_color = trim(a:color, '#')let l:red = str2nr(substitute(l:raw_color, '.{0}(.{2})', '1', 'g'), 16)let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000return l:brightness > 155endfunctionNORMALcode.vimunixutf-850%6:12
980
7/week
A dark charcoal theme for modern Neovim & classic Vim
published almost 8 years ago
updated about 23 hours ago
12
vim.o.background = ""vim.cmd.colorscheme ""NORMALinit.luaunixutf-80%0:2
123456789101112
" Returns true if the color hex value is lightfunction! IsHexColorLight(color) abortlet l:raw_color = trim(a:color, '#')let l:red = str2nr(substitute(l:raw_color, '.{0}(.{2})', '1', 'g'), 16)let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000return l:brightness > 155endfunctionNORMALcode.vimunixutf-850%6:12
854
2/week
A dark midnight theme for modern Neovim & classic Vim
published about 5 years ago
updated about 23 hours ago