mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-24 12:31:31 +01:00
vim: add truecolor support
This commit is contained in:
parent
6cd1f5e07a
commit
0cde5c3ea8
|
@ -98,27 +98,11 @@ packadd termdebug "useless shit
|
|||
let g:gitgutter_enabled = 1
|
||||
let g:gitgutter_sign_allow_clobber = 0 " do not allow gitgutter to overwrite signs
|
||||
let g:gitgutter_sign_priority = 50
|
||||
" let g:gitgutter_set_sign_backgrounds = 1
|
||||
" let g:gitgutter_override_sign_column_highlight = 0
|
||||
|
||||
" highlight clear GitGutterAdd GitGutterChange GitGutterModified GitGutterDelete SignColumn
|
||||
highlight SignColumn ctermbg=none
|
||||
|
||||
highlight GitGutterAdd ctermbg=none ctermfg=2
|
||||
highlight GitGutterChange ctermbg=none ctermfg=3
|
||||
highlight GitGutterDelete ctermbg=none ctermfg=1
|
||||
highlight GitGutterChangeDelete ctermbg=none ctermfg=1
|
||||
|
||||
let g:gitgutter_sign_added = '+'
|
||||
let g:gitgutter_sign_modified = '~'
|
||||
let g:gitgutter_sign_modified_removed = 'x'
|
||||
|
||||
" Improve vimdiff colors (deprecated, this was useful for the twilight256 colorscheme)
|
||||
" highlight DiffAdd cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red
|
||||
" highlight DiffDelete cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red
|
||||
" highlight DiffChange cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red
|
||||
" highlight DiffText cterm=bold ctermfg=10 ctermbg=88 gui=none guifg=bg guibg=Red
|
||||
|
||||
" Airline config
|
||||
set laststatus=2
|
||||
" let g:airline#extensions#tabline#enabled = 1
|
||||
|
|
|
@ -109,10 +109,7 @@ nmap <leader>za :Goyo 80%x85%<CR>
|
|||
nmap <leader>zz :Goyo<CR>
|
||||
|
||||
""Misc stuff
|
||||
|
||||
let s:uname=''
|
||||
let s:uname = system('uname | tr -d "\n"') " Get platform name (stripping the trailing newline)
|
||||
|
||||
if s:uname == "Darwin"
|
||||
"" Mac specific stuff
|
||||
elseif s:uname == "Linux"
|
||||
|
|
|
@ -8,7 +8,15 @@ scriptencoding utf-8
|
|||
" Style
|
||||
set background=dark
|
||||
let g:gruvbox_contrast_dark='hard'
|
||||
let g:gruvbox_sign_column='bg0'
|
||||
|
||||
colorscheme gruvbox
|
||||
" enable truecolor support
|
||||
set termguicolors
|
||||
if ! has('termguicolors')
|
||||
let &t_8f = "\<Esc>[38:2:%lu:%lu:%lum"
|
||||
let &t_8b = "\<Esc>[48:2:%lu:%lu:%lum"
|
||||
endif
|
||||
|
||||
" General stuff
|
||||
set nowrap
|
||||
|
|
Loading…
Reference in New Issue
Block a user