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