From eb6913fc39a33f8f015e770df78e80848251ae41 Mon Sep 17 00:00:00 2001 From: alemi Date: Sat, 7 Sep 2024 04:30:40 +0200 Subject: [PATCH] fix(neotree): lighter sections, always add users --- lua/codemp/neo-tree/bridge.lua | 6 ++---- lua/codemp/neo-tree/components.lua | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lua/codemp/neo-tree/bridge.lua b/lua/codemp/neo-tree/bridge.lua index ddc3138..44b201b 100644 --- a/lua/codemp/neo-tree/bridge.lua +++ b/lua/codemp/neo-tree/bridge.lua @@ -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 diff --git a/lua/codemp/neo-tree/components.lua b/lua/codemp/neo-tree/components.lua index 01f30d1..0eff7c8 100644 --- a/lua/codemp/neo-tree/components.lua +++ b/lua/codemp/neo-tree/components.lua @@ -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,