36 lines
820 B
VimL
36 lines
820 B
VimL
|
""" Themes and colors
|
||
|
if exists('+termguicolors')
|
||
|
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
|
||
|
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
|
||
|
set termguicolors
|
||
|
endif
|
||
|
|
||
|
function! LightOrDarkness()
|
||
|
if &background==?"dark"
|
||
|
set background=light
|
||
|
colorscheme edge
|
||
|
hi Search guibg=Green
|
||
|
elseif &background==?"light"
|
||
|
set background=dark
|
||
|
colorscheme miramare
|
||
|
hi Search guibg=Purple
|
||
|
endif
|
||
|
endfunction
|
||
|
|
||
|
" Needed for kitty not to f*ck up the background color
|
||
|
let &t_ut=''
|
||
|
|
||
|
set background=dark
|
||
|
let g:miramare_enable_italic = 0
|
||
|
let g:miramare_disable_italic_comment = 1
|
||
|
let g:miramare_transparent_background = 0
|
||
|
colorscheme miramare
|
||
|
"let g:airline_theme='hybrid'
|
||
|
set number
|
||
|
let g:enable_bold_font = 1
|
||
|
let g:enable_italic_font = 1
|
||
|
set laststatus=2
|
||
|
|
||
|
" virtualedit
|
||
|
"set virtualedit=all
|