Skip to content

Commit 7514301

Browse files
committed
bugfix issue #91 return if no result returns
1 parent d6b81ba commit 7514301

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/navigator/hierarchy.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ local path_cur = require"navigator.util".path_cur()
1010
local cwd = vim.loop.cwd()
1111
local M = {}
1212
local function call_hierarchy_handler(direction, err, result, ctx, cfg, error_message)
13+
if not result then
14+
print("No call hierarchy items found")
15+
return
16+
end
1317
trace('call_hierarchy', result)
1418
assert(#vim.lsp.buf_get_clients() > 0, "Must have a client running to use lsp_tags")
1519
if err ~= nil then

0 commit comments

Comments
 (0)