feat: highlight group for inlay hints in rust-tools

This commit is contained in:
əlemi 2022-09-01 01:55:05 +02:00
parent e4344f52f3
commit 5356a8992d
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 4 additions and 1 deletions

View file

@ -193,6 +193,9 @@ function PALETTE:set_ui_colors()
vim.api.nvim_set_hl(0, "FloatBorder", HIGHLIGHT(self.black.bright, nil, nil)) -- Used mostly for replace popup
vim.api.nvim_set_hl(0, "FloatTitle", HIGHLIGHT(self.white.dark, self.gray.dark, nil)) -- custom definition of dessing.nvim
-- we configure rust-tools to use this as group
vim.api.nvim_set_hl(0, "InlayHint", HIGHLIGHT(self.black.bright, nil, nil))
vim.api.nvim_set_hl(0, "Question", HIGHLIGHT(self.cyan.normal, nil, {bold=true}))
vim.api.nvim_set_hl(0, "MoreMsg", HIGHLIGHT(self.black.bright, nil, {bold=true}))
vim.api.nvim_set_hl(0, "Error", HIGHLIGHT(self.red.normal, nil, {underline=true}))

View file

@ -238,7 +238,7 @@ local init_fn = function(use)
local rust_tools = require("rust-tools")
rust_tools.setup({
tools = {
inlay_hints = { auto = true },
inlay_hints = { auto = true, highlight = "InlayHint" },
hover_actions = { border = "none" },
},
server = {