mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 15:34:53 +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
|
for user, buffer in pairs(buf_manager.users) do
|
||||||
table.insert(usr_section.children, new_user(codemp.workspace.name, user))
|
table.insert(usr_section.children, new_user(codemp.workspace.name, user))
|
||||||
end
|
end
|
||||||
if #buf_manager.users > 0 then
|
|
||||||
table.insert(ws_section.children, spacer())
|
table.insert(ws_section.children, spacer())
|
||||||
table.insert(ws_section.children, usr_section)
|
table.insert(ws_section.children, usr_section)
|
||||||
end
|
|
||||||
table.insert(root, ws_section)
|
table.insert(root, ws_section)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,7 @@ M.name = function(config, node, state)
|
||||||
highlight = highlights.PREVIEW
|
highlight = highlights.PREVIEW
|
||||||
elseif node.type == "root" or node.type == "button" then
|
elseif node.type == "root" or node.type == "button" then
|
||||||
text = " " .. node.name .. " "
|
text = " " .. node.name .. " "
|
||||||
highlight = highlights.FLOAT_TITLE
|
highlight = highlights.TAB_ACTIVE
|
||||||
end
|
end
|
||||||
return {
|
return {
|
||||||
text = text,
|
text = text,
|
||||||
|
|
Loading…
Reference in a new issue