fixed deprecated function

This commit is contained in:
2025-03-29 06:22:06 +01:00
parent 2db8e3fe45
commit cfca007fef

View File

@@ -26,8 +26,9 @@ M.update = function()
position = { line = l - 1, character = c },
}, function(err, result, ctx, config)
if win and vim.api.nvim_win_is_valid(win) and result and result.contents then
print(result.contents)
local md_lines = vim.lsp.util.convert_input_to_markdown_lines(result.contents)
print(md_lines)
-- print(md_lines)
md_lines = vim.gsplit(md_lines, "\n", { trimempty = true })
if vim.tbl_isempty(md_lines) then
return