folke / styler.nvim

Simple Neovim plugin to set a different colorscheme per filetype.
Apache License 2.0
282 stars 7 forks source link

How to disable backgrounds? #7

Closed opossalite closed 2 months ago

opossalite commented 1 year ago

Did you check the docs?

Is your feature request related to a problem? Please describe.

Usually I can run commands like

    vim.api.nvim_set_hl(0, "Normal", {bg = "none"})
    vim.api.nvim_set_hl(0, "NormalFloat", {bg = "none"})

and this will disable all backgrounds and make it transparent. However with this plugin, I'm not sure how to run these commands in such a way that they affect all files.

Describe the solution you'd like

If there isn't a way to do this currently, I guess I'd like to request a way to do this. I just want to get that fully transparent background.

Describe alternatives you've considered

I'm fairly inexperienced with deep neovim configuration, and mostly piece together what I find on dotfile examples and forums. I've attempted to create autocmd's that run the commands but no to avail. Simply running the two commands in the colors.lua file does seem to have an effect, but only on files who haven't had a theme assigned to them in styler. Any filetype specified in styler will have the theme's default background color enabled.

Additional context

No response

Rydwxz commented 1 year ago

Hi, Just adding that I came here to ask a similar question. Some sort of support for automatic transparency would be wonderful! I have forked this project and am trying to incorporate code from xiyaowong/transparent.nvim but have not got it to work yet.

github-actions[bot] commented 3 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 2 months ago

This issue was closed because it has been stalled for 7 days with no activity.