|
|
|
@ -8,7 +8,10 @@ function M.handler(_, result, ctx, config)
|
|
|
|
|
config.focus_id = ctx.method
|
|
|
|
|
config.zindex = 53
|
|
|
|
|
if not (result and result.contents) then
|
|
|
|
|
vim.notify('No information available')
|
|
|
|
|
-- vim.notify('No information available')
|
|
|
|
|
vim.schedule(function()
|
|
|
|
|
vim.lsp.buf.signature_help()
|
|
|
|
|
end)
|
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
local ft = vim.bo.ft
|
|
|
|
@ -16,7 +19,9 @@ function M.handler(_, result, ctx, config)
|
|
|
|
|
local markdown_lines = util.convert_input_to_markdown_lines(result.contents)
|
|
|
|
|
markdown_lines = nutils.trim_empty_lines(markdown_lines)
|
|
|
|
|
if vim.tbl_isempty(markdown_lines) then
|
|
|
|
|
vim.notify('No information available')
|
|
|
|
|
vim.schedule(function()
|
|
|
|
|
vim.lsp.buf.signature_help()
|
|
|
|
|
end)
|
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|