mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(edgy): maintain same order
This commit is contained in:
parent
49b2e98c3f
commit
5abcd877cf
1 changed files with 12 additions and 12 deletions
|
|
@ -96,18 +96,6 @@ return {
|
||||||
}
|
}
|
||||||
|
|
||||||
-- only add neo-tree sources if they are enabled in config
|
-- 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
|
if vim.list_contains(LazyVim.opts("neo-tree").sources, "buffers") then
|
||||||
table.insert(opts.left, 3, {
|
table.insert(opts.left, 3, {
|
||||||
title = "Neo-Tree Buffers",
|
title = "Neo-Tree Buffers",
|
||||||
|
|
@ -120,6 +108,18 @@ return {
|
||||||
})
|
})
|
||||||
end
|
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
|
for _, pos in ipairs({ "top", "bottom", "left", "right" }) do
|
||||||
opts[pos] = opts[pos] or {}
|
opts[pos] = opts[pos] or {}
|
||||||
table.insert(opts[pos], {
|
table.insert(opts[pos], {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue