savq / melange-nvim

🗡️ Warm color scheme for Neovim and beyond
MIT License
733 stars 55 forks source link

[feature request] add transparency? #68

Closed baggiponte closed 1 year ago

baggiponte commented 1 year ago

just found out about melange thanks to this blog post, and I totally stand by this:

the only colorscheme I’ve found that I didn’t eject in horror after 5 minutes, except for gruvbox

Would you consider adding transparency?

savq commented 1 year ago

I'm not planning on adding more configuration options to Melange in the near future. You can modify Melange using existing features, that is, you can override highlight groups in an autocommand that runs when melange is loaded.

In Vimscript:

augroup OverrideMelange
  autocmd!
  autocmd ColorScheme melange highlight Normal guibg=NONE
augroup END

Or in Lua:

local group = vim.api.nvim_create_augroup('OverrideMelange', {})
vim.api.nvim_create_autocmd('ColorScheme', {
  pattern = 'melange',
  callback = function() vim.api.nvim_set_hl(0, 'Normal', { bg = 'NONE' }) end,
  group = group,
})
baggiponte commented 1 year ago

Thanks!