mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-21 23:14:54 +01:00
fix(neotree): lighter sections, always add users
This commit is contained in:
parent
dfb3f0458a
commit
eb6913fc39
2 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue