mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 15:34:53 +01:00
fix(neotree): remove extra spacer, access root array
This commit is contained in:
parent
89b75430e0
commit
1732f94add
1 changed files with 1 additions and 2 deletions
|
@ -96,7 +96,6 @@ M.update_state = function(state)
|
||||||
new_root("users"),
|
new_root("users"),
|
||||||
spacer(),
|
spacer(),
|
||||||
}
|
}
|
||||||
table.insert(root.children, spacer())
|
|
||||||
for i, path in ipairs(codemp.workspace:filetree()) do
|
for i, path in ipairs(codemp.workspace:filetree()) do
|
||||||
table.insert(root[1].children, new_item(codemp.workspace.name, path))
|
table.insert(root[1].children, new_item(codemp.workspace.name, path))
|
||||||
end
|
end
|
||||||
|
@ -106,7 +105,7 @@ M.update_state = function(state)
|
||||||
elseif codemp.client ~= nil then
|
elseif codemp.client ~= nil then
|
||||||
root = { new_root(codemp.client.username .. "@codemp") }
|
root = { new_root(codemp.client.username .. "@codemp") }
|
||||||
for _, ws in ipairs(codemp.available) do
|
for _, ws in ipairs(codemp.available) do
|
||||||
table.insert(root.children, new_workspace(ws.name, ws.owned))
|
table.insert(root[1].children, new_workspace(ws.name, ws.owned))
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
root = { new_root("codemp") }
|
root = { new_root("codemp") }
|
||||||
|
|
Loading…
Reference in a new issue