From 5abcd877cf5926ced8bc0a99d4104099c70cf429 Mon Sep 17 00:00:00 2001 From: Andre Freitas Date: Sat, 15 Jun 2024 12:21:54 +0000 Subject: [PATCH] fix(edgy): maintain same order --- lua/lazyvim/plugins/extras/ui/edgy.lua | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lua/lazyvim/plugins/extras/ui/edgy.lua b/lua/lazyvim/plugins/extras/ui/edgy.lua index a849342a..e8708b16 100644 --- a/lua/lazyvim/plugins/extras/ui/edgy.lua +++ b/lua/lazyvim/plugins/extras/ui/edgy.lua @@ -96,18 +96,6 @@ return { } -- only add neo-tree sources if they are enabled in config - if vim.list_contains(LazyVim.opts("neo-tree").sources, "git_status") then - table.insert(opts.left, 3, { - title = "Neo-Tree Git", - ft = "neo-tree", - filter = function(buf) - return vim.b[buf].neo_tree_source == "git_status" - end, - pinned = true, - open = "Neotree position=right git_status", - }) - end - if vim.list_contains(LazyVim.opts("neo-tree").sources, "buffers") then table.insert(opts.left, 3, { title = "Neo-Tree Buffers", @@ -120,6 +108,18 @@ return { }) end + if vim.list_contains(LazyVim.opts("neo-tree").sources, "git_status") then + table.insert(opts.left, 3, { + title = "Neo-Tree Git", + ft = "neo-tree", + filter = function(buf) + return vim.b[buf].neo_tree_source == "git_status" + end, + pinned = true, + open = "Neotree position=right git_status", + }) + end + for _, pos in ipairs({ "top", "bottom", "left", "right" }) do opts[pos] = opts[pos] or {} table.insert(opts[pos], {