feat: highlight group for inlay hints in rust-tools
This commit is contained in:
parent
e4344f52f3
commit
5356a8992d
2 changed files with 4 additions and 1 deletions
|
@ -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}))
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue