From 6efbdabd1b2272401566354686ce85e1372fe925 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Fri, 14 Jun 2024 10:20:40 +0200 Subject: [PATCH] fix(edgy): only track other neo-tree windows with a source --- lua/lazyvim/plugins/extras/ui/edgy.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lua/lazyvim/plugins/extras/ui/edgy.lua b/lua/lazyvim/plugins/extras/ui/edgy.lua index 4ccdc5f0..f7645879 100644 --- a/lua/lazyvim/plugins/extras/ui/edgy.lua +++ b/lua/lazyvim/plugins/extras/ui/edgy.lua @@ -84,7 +84,14 @@ return { pinned = true, open = "Neotree position=top buffers", }, - "neo-tree", + { + title = "Neo-Tree Other", + ft = "neo-tree", + filter = function(buf) + return vim.b[buf].neo_tree_source ~= nil + end, + }, + -- "neo-tree", }, keys = { -- increase width