chore: better ux

This commit is contained in:
əlemi 2023-04-15 22:32:04 +02:00
parent 4bcf829eae
commit 4ee153fff7
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 7 additions and 4 deletions

View file

@ -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")

View file

@ -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