Update edgy.lua

Fixes https://github.com/LazyVim/LazyVim/issues/3697
This commit is contained in:
ibeex 2024-06-17 14:36:44 +02:00 committed by GitHub
parent 9177c3ad5e
commit e2fb5e09e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -100,7 +100,7 @@ return {
local neotree_sources = { buffers = "top", git_status = "right" }
for source, pos in pairs(neotree_sources) do
if vim.list_contains(neotree_opts.sources, source) then
if neotree_opts.sources ~= nil and vim.list_contains(neotree_opts.sources, source) then
table.insert(opts.left, 3, {
title = "Neo-Tree " .. source:gsub("_", " "),
ft = "neo-tree",