mirror of
https://github.com/ray-x/navigator.lua
synced 2024-11-03 15:40:20 +00:00
bugfix issue #91 return if no result returns
This commit is contained in:
parent
d6b81ba8ab
commit
7514301d80
@ -10,6 +10,10 @@ local path_cur = require"navigator.util".path_cur()
|
||||
local cwd = vim.loop.cwd()
|
||||
local M = {}
|
||||
local function call_hierarchy_handler(direction, err, result, ctx, cfg, error_message)
|
||||
if not result then
|
||||
print("No call hierarchy items found")
|
||||
return
|
||||
end
|
||||
trace('call_hierarchy', result)
|
||||
assert(#vim.lsp.buf_get_clients() > 0, "Must have a client running to use lsp_tags")
|
||||
if err ~= nil then
|
||||
|
Loading…
Reference in New Issue
Block a user