Skip to content

Commit

Permalink
Merge pull request #676 from ckipp01/trim_empty_lines
Browse files Browse the repository at this point in the history
fix: remove deprecated trim_emtpy_lines calls
  • Loading branch information
ckipp01 authored May 25, 2024
2 parents db53eb0 + f01c852 commit 4fc2bf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/metals.lua
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ M.info = function()
table.insert(output, " - https://github.com/scalameta/nvim-metals")
table.insert(output, " - https://github.com/scalameta/metals")

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

local float = Float.percentage_range_window(0.6, 0.4, { winblend = 0 }, {
title = "Metals Info",
Expand Down
2 changes: 1 addition & 1 deletion lua/metals/decoration.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ M.set_decoration = function(bufnr, decoration)

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

hover_messages[ext_id] = hover_message
end
Expand Down

0 comments on commit 4fc2bf7

Please sign in to comment.