Skip to content

Commit 95a62a0

Browse files
mosauterMunifTanjim
authored andcommitted
feat: Make inlay_hints priority configurable
PR: simrat39#361
1 parent 8be85cd commit 95a62a0

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

Diff for: README.md

+3
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,9 @@ local opts = {
272272

273273
-- The color of the hints
274274
highlight = "Comment",
275+
276+
-- priority of the virtual text
277+
priority = 100,
275278
},
276279

277280
-- options same as lsp hover / vim.lsp.util.open_floating_preview()

Diff for: lua/rust-tools/config.lua

+3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ local defaults = {
5656

5757
-- The color of the hints
5858
highlight = "Comment",
59+
60+
-- priority of the virtual text
61+
priority = 100,
5962
},
6063

6164
-- options same as lsp hover / vim.lsp.util.open_floating_preview()

Diff for: lua/rust-tools/inlay_hints.lua

+1
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ local function render_line(line, line_hints, bufnr, max_line_len)
251251
{ virt_text, opts.highlight },
252252
},
253253
hl_mode = "combine",
254+
priority = opts.priority
254255
})
255256
end
256257
end

0 commit comments

Comments
 (0)