Skip to content

Commit

Permalink
Merge pull request #473 from suliatis/decorations-with-combined-hl-mode
Browse files Browse the repository at this point in the history
feat: set virtual text highlight mode to combine
  • Loading branch information
ckipp01 authored Oct 18, 2022
2 parents 6e63d43 + 2df0677 commit 8f838eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/metals/decoration.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ M.set_decoration = function(bufnr, decoration)
local virt_texts = {}
table.insert(virt_texts, { text, hover_color })

local ext_id = api.nvim_buf_set_extmark(bufnr, M.decoration_namespace(), line, -1, { virt_text = virt_texts })
local virt_text_opts = { virt_text = virt_texts, hl_mode = "combine" }
local ext_id = api.nvim_buf_set_extmark(bufnr, M.decoration_namespace(), line, -1, virt_text_opts)

local hover_message = lsp.util.convert_input_to_markdown_lines(decoration.hoverMessage, {})
hover_message = lsp.util.trim_empty_lines(hover_message)
Expand Down

0 comments on commit 8f838eb

Please sign in to comment.