-
-
Notifications
You must be signed in to change notification settings - Fork 610
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
Black box on term buffer due to NvimTree #3068
Comments
I cannot replicate this with kitty on linux however that is not surprising. Unfortunately I don't have access to macos; could you give this a try @gegoune ? FYI terminal return to normal default is |
Does this occur with any other terminals @jugarpeupv ? |
@alex-courtis Yes, this is iterm ![]() And this is alacritty ![]() And i also reproduced it with a minimal config ![]() Minimal config: nvim -nu /tmp/nvim-tmp.lua vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
vim.cmd [[set runtimepath=$VIMRUNTIME]]
vim.cmd [[set packpath=/tmp/nvt-min/site]]
local package_root = "/tmp/nvt-min/site/pack"
local install_path = package_root .. "/packer/start/packer.nvim"
local function load_plugins()
require("packer").startup {
{
"wbthomason/packer.nvim",
"nvim-tree/nvim-tree.lua",
"nvim-tree/nvim-web-devicons",
-- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
},
config = {
package_root = package_root,
compile_path = install_path .. "/plugin/packer_compiled.lua",
display = { non_interactive = true },
},
}
end
if vim.fn.isdirectory(install_path) == 0 then
print "Installing nvim-tree and dependencies."
vim.fn.system { "git", "clone", "--depth=1", "https://github.com/wbthomason/packer.nvim", install_path }
end
load_plugins()
require("packer").sync()
vim.cmd [[autocmd User PackerComplete ++once echo "Ready!" | lua setup()]]
vim.opt.termguicolors = true
vim.opt.cursorline = true
-- MODIFY NVIM-TREE SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
_G.setup = function()
require("nvim-tree").setup {}
end
-- UNCOMMENT this block for diagnostics issues, substituting pattern and cmd as appropriate.
-- Requires diagnostics.enable = true in setup.
--[[
vim.api.nvim_create_autocmd("FileType", {
pattern = "lua",
callback = function()
vim.lsp.start { cmd = { "lua-language-server" } }
end,
})
]]
|
Can't replicate with iterm2. |
Must be something else in your configuration. Try without shell and terminal configurations. |
Okey i will try and let you know, thank you @gegoune |
@gegoune i have tried using bash instead of zsh, removing all env variables, changing $TERM. But still reproducing it with iterm, kitty and alacritty Only if i use default Terminal.app i do not reproduce it, with Terminal.app using my default zsh or bash config, it works well with both, with the minimal example i provided and with my neovim config I have no idea what could be, what i have noticed is with Terminal.app if i open neovim with or without my personal config, the colors are missing, but i dont know why ![]() |
Can you reproduce it without |
@gegoune no, only if a run a command in the term buffer It might be related to the terminal width? ![]() |
Description
The problem is explained in this github discussion
neovim/neovim#32520
Neovim version
Operating system and version
Macos arm
Windows variant
No response
nvim-tree version
6709463
Clean room replication
nvim -nu /tmp/nvim-tmp.lua
Steps to reproduce
nvim -nu
15sp|term
ls -la
<C-\><C-N>
to get back to normal mode<C-w>o
You will see the blackbox
Expected behavior
The black box is not rendered
Actual behavior
The text was updated successfully, but these errors were encountered: