-
-
Notifications
You must be signed in to change notification settings - Fork 609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Background color #245
Comments
hum used to be the case but i did not manage to do it. I'm pushing a fix to set back the |
well i have no clue why, but i cannot manage to set |
this was fixed in the view refactoring, you can now set NvimTreeNormal and it works fine :) |
@kyazdani42 I just tried this out, I'd been using a similar winhighlight override for a while anyway. From looking at the current implementation though it seems to set
This means that for me anyway I see that signcolumn is highlighted the same as the normal buffer but not the same as the rest of the tree. I think |
indeed, just fixed that in latest master |
When I open a new tab from nvim-tree after setting as below, the background color of the new tab is strange(same as NvimTreeNormal) |
@kyazdani42 Same issue happening with me, I'am using default settings for nvim-tree -- nvim-tree
{
"nvim-tree/nvim-tree.lua",
dependencies = {
"nvim-tree/nvim-web-devicons",
},
config = function()
-- disable netrw at the very start of your init.lua
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
require("nvim-tree").setup({
view = { side = "right", width = 50 },
update_focused_file = { enable = true, update_cwd = false },
renderer = {
highlight_modified = "all",
highlight_git = true,
root_folder_label = false,
icons = { webdev_colors = false, show = { folder_arrow = false } },
indent_markers = { enable = true },
},
})
end,
}, Screen.Recording.2023-12-15.at.14.47.47.movI don't know to fix it, it happens randomly, but i think mostly after I'm trying to open in a new tab from nvim-tree |
Have you got any other plugins or automation that may alter Are you setting Can you |
Here is a long and late reply .. just keep these two lines if you are using tokyonight .. and you will be set .. every thing will stay transparent. vim.cmd("autocmd VimEnter * hi NvimTreeNormal guibg=NONE" ) Cheers !!! |
The issue @kirill-martynov is facing seems to be replicatable with the following: open Nvim, toggle the tree, open the file in split view ( I could not replicate the colorscheme change if I closed the window with the empty buffer first. This is probably connected to the cause of the issue. No idea why this might be happening. |
Unfortunately I can't replicate this one; I'm not quite sure what/where/how fast the flicker is. @maleksware can you please raise a new Bug Report with a minimal reproducer that we can also share with lualine. In the meantime I'm watching |
Is it possible to set a custom background color only for the tree?
The text was updated successfully, but these errors were encountered: