From 4ee153fff75a27e8b30bceefcc34abf34a9ce9ea Mon Sep 17 00:00:00 2001 From: alemi Date: Sat, 15 Apr 2023 22:32:04 +0200 Subject: [PATCH] chore: better ux --- lua/neo-tree/sources/symbolmap/commands.lua | 6 ++++-- lua/neo-tree/sources/symbolmap/init.lua | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lua/neo-tree/sources/symbolmap/commands.lua b/lua/neo-tree/sources/symbolmap/commands.lua index 3d342a3..2c631f2 100644 --- a/lua/neo-tree/sources/symbolmap/commands.lua +++ b/lua/neo-tree/sources/symbolmap/commands.lua @@ -80,7 +80,8 @@ M.add = function(state) local root = { id = "root", name = "no workspace symbols loaded", - type = "directory", + type = "file", + extra = { kind = vim.lsp.protocol.SymbolKind.Event }, children = {} } if data ~= nil then @@ -93,7 +94,8 @@ M.add = function(state) state.symboltree = { { id = "root", name = "reloading workspace symbols", - type = "directory", + type = "file", + extra = { kind = vim.lsp.protocol.SymbolKind.Event }, children = {} } } manager.refresh("symbolmap") diff --git a/lua/neo-tree/sources/symbolmap/init.lua b/lua/neo-tree/sources/symbolmap/init.lua index c99d3f4..32c3d41 100644 --- a/lua/neo-tree/sources/symbolmap/init.lua +++ b/lua/neo-tree/sources/symbolmap/init.lua @@ -20,8 +20,9 @@ M.navigate = function(state, path) if state.symboltree == nil then state.symboltree = { { id = "root", - name = "symbols", - type = "directory", + name = "press 'a' to start querying for symbols", + type = "file", + extra = { kind = vim.lsp.protocol.SymbolKind.Event }, children = {} } } end