First, I love this color scheme. Thank you for providing it!
Problem summary
I use transparency in Alacritty terminal. I'm able to get transparency in vim/nvim with other color-schemes by including the following line after colorscheme in my init.vim:
hi Normal guibg=NONE ctermbg=NONE
(I also set my terminal color-scheme to oceanic-next from this)
When I tried doing the same with oceanic-next, I got transparency on non-empty lines. However, the end of buffer area was still opaque (see screenshot).
I know this is not necessarily a problem with your code. I'm wondering if what I'm doing is the best way to incorporate transparency with NeoVim and oceanic-next. It would be great if the scheme would account for this option.
Expected
All background becomes transparent.
Environment
terminal: Alacritty
vim/nvim version: NeoVim v0.4.4
DE: gnome
Minimal vimrc
call plug#begin('$HOME/.local/share/nvim/plugged')
Plug 'mhartington/oceanic-next'
call plug#end()
set cursorline
set number
syntax on
" This sets true color for Alacritty
let &t_8f = "\<esc>[38:2:%lu:%lu:%lum"
let &t_8b = "\<esc>[48:2:%lu:%lu:%lum"
set termguicolors
colorscheme OceanicNext
" This usually makes vim transparent
hi Normal guibg=NONE ctermbg=NONE
set runtimepath+=~/.local/share/nvim/plugged/oceanic-next
To reproduce:
Use Alacritty with the following in $HOME/.config/alacritty/alacritty.yml:
background_opacity: .75
Install vim-plug
Use included init.vim
Install oceanic-next
Open a file in nvim
In normal mode, enter G zz to see an empty end-of-buffer area
Workaround
With some trial-and-error, I was able to get transparency working by editing lines 98, 99 in OceanicNext.vim as follows:
Not sure if this is correct or if it has side-effects. After making this edit, the scheme seems to be working as expected (with or without hi Normal guibg=NONE ctermbg=NONE). I don't know a lot about this, but I'm wondering if setting these colors to base00 is necessary.
I'm happy to do a pull request with these changes and update the README.md to include transparency as a feature for terminals that support it.
First, I love this color scheme. Thank you for providing it!
Problem summary
I use transparency in Alacritty terminal. I'm able to get transparency in vim/nvim with other color-schemes by including the following line after
colorscheme
in myinit.vim
:(I also set my terminal color-scheme to oceanic-next from this)
When I tried doing the same with oceanic-next, I got transparency on non-empty lines. However, the end of buffer area was still opaque (see screenshot). I know this is not necessarily a problem with your code. I'm wondering if what I'm doing is the best way to incorporate transparency with NeoVim and oceanic-next. It would be great if the scheme would account for this option.
Expected
All background becomes transparent.
Environment
Minimal vimrc
To reproduce:
$HOME/.config/alacritty/alacritty.yml
:background_opacity: .75
G zz
to see an empty end-of-buffer areaWorkaround
With some trial-and-error, I was able to get transparency working by editing lines 98, 99 in
OceanicNext.vim
as follows:Not sure if this is correct or if it has side-effects. After making this edit, the scheme seems to be working as expected (with or without
hi Normal guibg=NONE ctermbg=NONE
). I don't know a lot about this, but I'm wondering if setting these colors to base00 is necessary.I'm happy to do a pull request with these changes and update the README.md to include transparency as a feature for terminals that support it.
Screen shot