loctvl842 / monokai-pro.nvim

Monokai Pro theme for Neovim written in Lua, with multiple filters: Pro, Classic, Machine, Octagon, Ristretto, Spectrum
MIT License
431 stars 42 forks source link

Is there a way to make nvim-tree transparent? #55

Closed solidiquis closed 1 year ago

solidiquis commented 1 year ago

Wondering if it were possible to get nvim-tree to be transparent along with the transparent background. Thanks for monokai-pro!

Screen Shot 2023-05-30 at 9 51 33 PM
loctvl842 commented 1 year ago

Yes which terminal are you using?

solidiquis commented 1 year ago

Wezterm

loctvl842 commented 1 year ago

you have to add nvim-tree to background_clear. Here are default of background_clear:

monokai.setup({
  background_clear = {
    -- "float_win",
    "toggleterm",
    "telescope",
    "which-key",
    "renamer",
    "notify",
    -- "nvim-tree",
    -- "neo-tree",
  }
)}

un-comment nvim-tree to clear the background

solidiquis commented 1 year ago

No dice :[

Screen Shot 2023-05-31 at 11 06 57 AM
loctvl842 commented 1 year ago

You have to make your terminal transparent by itslef and add nvim-tree to background_clear`

Please change transparent_background to true

Here is the result:

image

The left is kitty terminal and the right is alacritty

solidiquis commented 1 year ago

Unfortunately even on Alacritty I couldn't get this to work. My current work-around will be to just vim.api.nvim_set_hl(0, "NvimTreeNormal", { bg = "none" }). Closing issue!