Skip to content

Commit

Permalink
fix(hover): that was a bad idea.. some checking needed here..
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Ehrendreich authored and Will Ehrendreich committed Nov 7, 2023
1 parent 49a9cc7 commit 5b0d6a0
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions lua/ionide/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -680,11 +680,18 @@ M["textDocument/hover"] = function(error, result, context, config)
-- .. "result is: \n"
-- .. vim.inspect({ error or "", result or "", context or "", config or "" })
-- )
-- if result then
-- if result.content then
vim.lsp.handlers.hover(error or {}, result or {}, context or {}, config or {})
-- end
-- end
if result then
if result.content then
if not result.content.message then
M.notify(
"textDocument/hover" .. " | " .. "result.content.message is null. full result is: \n" .. vim.inspect(result)
)
result.content["message"] = ""
M.notify("result.content.message is now: \n" .. vim.inspect(result.content.message))
end
end
vim.lsp.handlers.hover(error or {}, result, context or {}, config or {})
end
-- vim.lsp.handlers.hover(error or {}, result or {}, context or {}, config or {})
end

Expand Down

0 comments on commit 5b0d6a0

Please sign in to comment.