Skip to content

Commit f01c852

Browse files
committed
fix: remove deprecated trim_emtpy_lines calls
1 parent db53eb0 commit f01c852

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lua/metals.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ M.info = function()
175175
table.insert(output, " - https://github.com/scalameta/nvim-metals")
176176
table.insert(output, " - https://github.com/scalameta/metals")
177177

178-
output = lsp.util.trim_empty_lines(output)
178+
output = vim.split(table.concat(output, "\n"), "\n", { trimempty = true })
179179

180180
local float = Float.percentage_range_window(0.6, 0.4, { winblend = 0 }, {
181181
title = "Metals Info",

lua/metals/decoration.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ M.set_decoration = function(bufnr, decoration)
2323

2424
if decoration.hoverMessage then
2525
local hover_message = lsp.util.convert_input_to_markdown_lines(decoration.hoverMessage, {})
26-
hover_message = lsp.util.trim_empty_lines(hover_message)
26+
hover_message = vim.split(table.concat(hover_message, "\n"), "\n", { trimempty = true })
2727

2828
hover_messages[ext_id] = hover_message
2929
end

0 commit comments

Comments
 (0)