fixed deprecated function

This commit is contained in:
2025-03-29 06:11:35 +01:00
parent 8d10e643ab
commit 52b58fd919

View File

@@ -27,7 +27,7 @@ M.update = function()
}, function(err, result, ctx, config)
if win and vim.api.nvim_win_is_valid(win) and result and result.contents then
local md_lines = vim.lsp.util.convert_input_to_markdown_lines(result.contents)
md_lines = vim.lsp.util.split(md_lines, "\n", { trimpempty = true })
md_lines = vim.split(md_lines, "\n", { trimpempty = true })
if vim.tbl_isempty(md_lines) then
return
end