From b9f8ed3c55f2254cbb85612c2c6db7f74511f1d3 Mon Sep 17 00:00:00 2001 From: ray-x Date: Sat, 4 Sep 2021 16:55:02 +1000 Subject: [PATCH] show error messages --- lua/navigator/reference.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/navigator/reference.lua b/lua/navigator/reference.lua index b77a940..324031f 100644 --- a/lua/navigator/reference.lua +++ b/lua/navigator/reference.lua @@ -17,7 +17,8 @@ local function ref_hdlr(err, api, locations, num, bufnr) -- log("num", num) -- log("bfnr", bufnr) if err ~= nil then - print('ref callback error, lsp may not ready', err) + print('lsp ref callback error', err, api, vim.inspect(locations)) + log('ref callback error, lsp may not ready', err, api, vim.inspect(locations)) return end if type(locations) ~= 'table' then