From 8d10e643abc4e13a81ce9e4a257de28881f48932 Mon Sep 17 00:00:00 2001 From: tiyn Date: Sat, 29 Mar 2025 06:10:43 +0100 Subject: [PATCH] fixed deprecated function --- lua/docs-view.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/docs-view.lua b/lua/docs-view.lua index 599eda8..6d8bc98 100644 --- a/lua/docs-view.lua +++ b/lua/docs-view.lua @@ -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.trim_empty_lines(md_lines) + md_lines = vim.lsp.util.split(md_lines, "\n", { trimpempty = true }) if vim.tbl_isempty(md_lines) then return end