fix(neotree): lighter sections, always add users

This commit is contained in:
əlemi 2024-09-07 04:30:40 +02:00
parent dfb3f0458a
commit eb6913fc39
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 3 additions and 5 deletions

View file

@ -129,10 +129,8 @@ M.update_state = function(state)
for user, buffer in pairs(buf_manager.users) do
table.insert(usr_section.children, new_user(codemp.workspace.name, user))
end
if #buf_manager.users > 0 then
table.insert(ws_section.children, spacer())
table.insert(ws_section.children, usr_section)
end
table.insert(ws_section.children, spacer())
table.insert(ws_section.children, usr_section)
table.insert(root, ws_section)
end

View file

@ -68,7 +68,7 @@ M.name = function(config, node, state)
highlight = highlights.PREVIEW
elseif node.type == "root" or node.type == "button" then
text = " " .. node.name .. " "
highlight = highlights.FLOAT_TITLE
highlight = highlights.TAB_ACTIVE
end
return {
text = text,