Set bg to none instead of same as terminal. This works better with transparent terminals.

This commit is contained in:
Martin Larsson 2025-01-10 01:05:48 +01:00
parent bcf9a7fdb1
commit 88ac5cb9f0

View file

@ -5,7 +5,7 @@ colors.generate(true)
local function save_and_set_invisible_inlay_hints_hl() local function save_and_set_invisible_inlay_hints_hl()
saved_highlights = vim.api.nvim_get_hl_by_name("LspInlayHint", true) saved_highlights = vim.api.nvim_get_hl_by_name("LspInlayHint", true)
vim.api.nvim_set_hl(0, "LspInlayHint", { fg = colors.bg, bg = colors.bg }) vim.api.nvim_set_hl(0, "LspInlayHint", { fg = colors.bg, bg = "none" })
end end
local function restore_inlay_hints_hl() local function restore_inlay_hints_hl()