Skip to content

Conversation

phanen
Copy link
Collaborator

@phanen phanen commented Jun 14, 2025

Hidden win should never be used as target.

repro

Use neovim nightly

for name, url in pairs {
  nvt = 'https://github.com/nvim-tree/nvim-tree.lua',
} do
  local install_path = vim.fn.fnamemodify('nvim_issue/' .. name, ':p')
  if vim.fn.isdirectory(install_path) == 0 then
    vim.fn.system { 'git', 'clone', '--depth=1', url, install_path }
  end
  vim.opt.runtimepath:append(install_path)
end
require('nvim-tree').setup {}
require('vim._extui').enable({})
nvim --clean -u nvim-tree-hide.lua +"%bd!" +NvimTreeOpen

Copy link
Member

@alex-courtis alex-courtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for the quick fix @phanen !

@alex-courtis alex-courtis merged commit d87b41c into nvim-tree:master Jun 15, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants