From ed7f3851d17e37b3f458f25af385fc69f8394d1a Mon Sep 17 00:00:00 2001 From: kiyan Date: Mon, 28 Jun 2021 20:31:15 +0200 Subject: [PATCH] fix(picker): do not select floating windows --- lua/nvim-tree/lib.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/nvim-tree/lib.lua b/lua/nvim-tree/lib.lua index 4a609da6..95abc566 100644 --- a/lua/nvim-tree/lib.lua +++ b/lua/nvim-tree/lib.lua @@ -242,7 +242,10 @@ function M.pick_window() end local win_config = api.nvim_win_get_config(id) - return id ~= tree_winid and win_config.focusable + return id ~= tree_winid + and win_config.focusable + and not win_config.external + and not win_config.relative end, win_ids) -- If there are no selectable windows: return. If there's only 1, return it without picking.