xiyaowong / transparent.nvim

Remove all background colors to make nvim transparent
806 stars 23 forks source link

Tip for nvim-tree and tokyonight #21

Closed TJohn0312 closed 1 year ago

TJohn0312 commented 1 year ago

I had a bit of trouble with this and came to share my answer to this, manually setting nvim-tree background looks a bit like

        extra_groups = {"NvimTreeNormal"}

However tokyonight supports transparent by itself so it acted a little weirder than my other color schemes I fixed it like:

require("tokyonight").setup({ 
styles = { sidebars = "transparent" }
})

in my case this needed to be there for tokyonight cooperate with nvim-tree and TransparentToggle

Hope this can help a little