Skyler Grey | 012022a | 2023-01-26 00:38:15 +0000 | [diff] [blame] | 1 | if exists('+termguicolors') |
| 2 | let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum" |
| 3 | let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum" |
| 4 | set termguicolors |
| 5 | endif |
| 6 | colorscheme onehalfdark |
| 7 | |
| 8 | call g:Highlight("PmenuSbar", g:statusline, g:statusline) |
| 9 | call g:Highlight("PmenuThumb", g:white, g:white) |
| 10 | call g:Highlight("PmenuSel", g:transparent, g:lightgrey) |
| 11 | call g:Highlight("Pmenu", g:transparent, g:statusline) |
| 12 | |
| 13 | call g:Highlight("HlSearchLens", g:darkyellow, g:transparent) |
| 14 | call g:Highlight("HlSearchLensNear", g:white, g:darkyellow) |
| 15 | |
| 16 | set signcolumn=yes |
| 17 | set guicursor=v-r-cr:hor50,i:ver50 |
| 18 | set guifont=Liga\ Roboto\ Mono:h12 |
| 19 | set splitright |
| 20 | set splitbelow |
| 21 | set scrolloff=3 |
| 22 | set number |
| 23 | |
| 24 | set textwidth=80 |
| 25 | set colorcolumn=+1 |
| 26 | call g:Highlight("ColorColumn", g:transparent, g:statusline) |
| 27 | |
| 28 | set number |
| 29 | |
| 30 | augroup numbertoggle |
| 31 | autocmd! |
| 32 | autocmd BufEnter,FocusGained,InsertLeave,WinEnter * if &nu && mode() != "i" | set rnu | endif |
| 33 | autocmd BufLeave,FocusLost,InsertEnter,WinLeave * if &nu | set nornu | endif |
| 34 | augroup END |
| 35 | |