Merge branch 'master' into 2826-remove-view-globals

This commit is contained in:
Alexander Courtis
2025-07-28 08:26:33 +10:00
committed by GitHub
3 changed files with 68 additions and 32 deletions

View File

@@ -3,6 +3,7 @@ local lib = require("nvim-tree.lib")
local notify = require("nvim-tree.notify")
local utils = require("nvim-tree.utils")
local core = require("nvim-tree.core")
local full_name = require("nvim-tree.renderer.components.full-name")
local M = {}
@@ -40,7 +41,12 @@ local function usable_win_ids()
end
local win_config = vim.api.nvim_win_get_config(id)
return id ~= tree_winid and win_config.focusable and not win_config.hide and not win_config.external or false
return id ~= tree_winid
and id ~= full_name.popup_win
and win_config.focusable
and not win_config.hide
and not win_config.external
or false
end, win_ids)
end