From 5356a8992dd5c36b309ca3000d88a5572592cccf Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 1 Sep 2022 01:55:05 +0200 Subject: [PATCH] feat: highlight group for inlay hints in rust-tools --- lua/colors.lua | 3 +++ lua/plugins.lua | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/colors.lua b/lua/colors.lua index 52f9acd..3dc0b06 100644 --- a/lua/colors.lua +++ b/lua/colors.lua @@ -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})) diff --git a/lua/plugins.lua b/lua/plugins.lua index 10ca598..5010c93 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -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 = {