Closed REN-aissance closed 3 months ago
Thanks for reporting, I'll look into this.
Could you please share your lunarvim config?
Here you go!
-- Read the docs: https://www.lunarvim.org/docs/configuration
-- Video Tutorials: https://www.youtube.com/watch?v=sFA9kX-Ud_c&list=PLhoH5vyxr6QqGu0i7tt_XoVK9v-KvZ3m6
-- Forum: https://www.reddit.com/r/lunarvim/
-- Discord: https://discord.com/invite/Xb9B4Ny
require("banners")
lvim.builtin.which_key.mappings["t"] = { "<cmd>ToggleTerm shell=/bin/zsh<CR>", "Terminal" }
lvim.transparent_window = true
lvim.colorscheme = "gruvbox-material"
lvim.builtin.nvimtree.setup.view.side = "right"
lvim.format_on_save = true
vim.opt.relativenumber = true
vim.opt.shell = "/usr/bin/zsh"
vim.cmd("set clipboard=unnamedplus")
lvim.plugins = {
{ "nvim-treesitter/nvim-treesitter-context" },
{ "polirritmico/monokai-nightasty.nvim" },
{
"sainnhe/gruvbox-material",
config = function()
vim.cmd("g:gruvbox_material_transparent_background = 2")
end,
},
{ "tpope/vim-surround" },
{
"folke/todo-comments.nvim",
event = "BufRead",
config = function()
require("todo-comments").setup()
end,
},
{
'wfxr/minimap.vim',
build = "cargo install --locked code-minimap",
cmd = { "Minimap", "MinimapClose", "MinimapToggle", "MinimapRefresh", "MinimapUpdateHighlight" },
config = function()
vim.cmd("let g:minimap_width = 5")
vim.cmd("let g:minimap_auto_start = 1")
end,
},
{
'saecki/crates.nvim',
config = function()
require('crates').setup()
end,
},
{ "folke/zen-mode.nvim" },
{ "nvim-lua/plenary.nvim" },
{ "windwp/nvim-spectre" },
}
Do you observe the same behavior with lvim.transparent_window = false
?
Here is the difference between
false
in the first screenshot and true
in the second
Ah right, the file tree window is dimmed by default.
There has been a few attempts to make the config right for multiple combinations of configuration, but if a remember correctly this comes with limitations. The bottom part of the window is called "EndOfBuffer" in Vim terms. Here is a discussion which describes how certain combinations of configurations don't play too nice with dimmed EndOfBuffers: https://github.com/sainnhe/everforest/issues/123#issuecomment-1653362619
Still, it doesn't explain why we don't make this part of the window transparent. Like I said, I'm going to investigate further.
Much appreciated and good luck!
I just looked into this, but wasn't able to reproduce. For me the entire NvimTree window is transparent, including the EndOfBuffer:
Could you please post the output of the Vim command :verbose highlight NvimTreeEndOfBuffer
?
It should show:
:verbose highlight NvimTreeEndOfBuffer
NvimTreeEndOfBuffer xxx cleared
If your output is different, it will at least give us a hint about what is setting the highlight group.
Apologies for the extremely late reply. The output I recieve is:
NvimTreeEndOfBuffer xxx ctermfg=233 ctermbg=233 guifg=#1b1b1b guibg=#1b1b1b Last set from ~/.local/share/lvim/site/pack/lazy/opt/gruvbox-material/autoload/gruvbox_material.vim line 286
The output suggests that configuration.transparent_background
is set to its default value of 0
.
Now that I looked closer at your configuration, the reason is obvious to me. You are trying to set an option using vim.cmd()
, which is incorrect.
You should instead be setting the value of global variables as follows:
config = function()
vim.g.my_option = value
end,
You can refer to my last screenshot for a full, working example of setting up the colorscheme via lazy.nvim.
Here is the relevant place where these highlights are configured, for reference.
Apologies and thank you! It looks great now
I have done the following steps before reporting this issue:
Operating system/version
Arch Linux (6.7.6-arch1-1)
Terminal emulator/version
konsole 23.08.5
$TERM environment variable
xterm-256color
Tmux version
No response
Feature matrix
Minimal vimrc that can reproduce this bug.
I'm a noob and using lunarvim don't know how to do this
Steps to reproduce this bug using minimal vimrc
I'm a noob and using lunarvim don't know how to do this
Expected behavior
Empty nvimtree portion should be transparent (couldn't figure out how to reopen #180 so duplicating it)
Actual behavior
Empty nvimtree portion is not transparent