Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Switchable transparent background ? #321

Open
Sanix-Darker opened this issue Dec 11, 2022 · 0 comments
Open

feat: Switchable transparent background ? #321

Sanix-Darker opened this issue Dec 11, 2022 · 0 comments

Comments

@Sanix-Darker
Copy link

Sanix-Darker commented Dec 11, 2022

Hey there !

Am a nvim user and a big fan of onedark !

But i also like my own version with a transparent background and i was wondering, if it's something you want to have at some point ? (with a switchable option ?)

Screenshot from 2022-12-11 23-56-31

With :

function! AdaptColorscheme()
   " highlight clear CursorLine
   highlight Normal ctermbg=none
   highlight LineNr ctermbg=none
   highlight Folded ctermbg=none
   highlight NonText ctermbg=none
   highlight SpecialKey ctermbg=none
   highlight VertSplit ctermbg=none
   highlight SignColumn ctermbg=none
endfunction
autocmd ColorScheme * call AdaptColorscheme()

highlight Normal guibg=NONE ctermbg=NONE
highlight CursorColumn cterm=NONE ctermbg=NONE ctermfg=NONE
set cursorline
" highlight CursorLine cterm=NONE ctermbg=NONE ctermfg=NONE
highlight CursorLine cterm=0 ctermbg=NONE ctermfg=NONE
highlight CursorLineNr cterm=NONE ctermbg=NONE ctermfg=NONE
highlight clear LineNr
highlight clear SignColumn
highlight clear StatusLine

" Change Color when entering Insert Mode
autocmd InsertEnter * set nocursorline
" Revert Color to default when leaving Insert Mode
autocmd InsertLeave * set nocursorline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant