mirror of
https://git.alemi.dev/neo-tree-symbolmap.git
synced 2024-11-23 16:14:48 +01:00
chore: better ux
This commit is contained in:
parent
4bcf829eae
commit
4ee153fff7
2 changed files with 7 additions and 4 deletions
|
@ -80,7 +80,8 @@ M.add = function(state)
|
||||||
local root = {
|
local root = {
|
||||||
id = "root",
|
id = "root",
|
||||||
name = "no workspace symbols loaded",
|
name = "no workspace symbols loaded",
|
||||||
type = "directory",
|
type = "file",
|
||||||
|
extra = { kind = vim.lsp.protocol.SymbolKind.Event },
|
||||||
children = {}
|
children = {}
|
||||||
}
|
}
|
||||||
if data ~= nil then
|
if data ~= nil then
|
||||||
|
@ -93,7 +94,8 @@ M.add = function(state)
|
||||||
state.symboltree = { {
|
state.symboltree = { {
|
||||||
id = "root",
|
id = "root",
|
||||||
name = "reloading workspace symbols",
|
name = "reloading workspace symbols",
|
||||||
type = "directory",
|
type = "file",
|
||||||
|
extra = { kind = vim.lsp.protocol.SymbolKind.Event },
|
||||||
children = {}
|
children = {}
|
||||||
} }
|
} }
|
||||||
manager.refresh("symbolmap")
|
manager.refresh("symbolmap")
|
||||||
|
|
|
@ -20,8 +20,9 @@ M.navigate = function(state, path)
|
||||||
if state.symboltree == nil then
|
if state.symboltree == nil then
|
||||||
state.symboltree = { {
|
state.symboltree = { {
|
||||||
id = "root",
|
id = "root",
|
||||||
name = "symbols",
|
name = "press 'a' to start querying for symbols",
|
||||||
type = "directory",
|
type = "file",
|
||||||
|
extra = { kind = vim.lsp.protocol.SymbolKind.Event },
|
||||||
children = {}
|
children = {}
|
||||||
} }
|
} }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue