mirror of
https://github.com/maxmx03/solarized.nvim.git
synced 2026-09-10 07:26:26 -04:00
fix: inlay-hint
This commit is contained in:
parent
5ad821f366
commit
fe803f15e0
|
|
@ -1,12 +1,19 @@
|
|||
return function(c)
|
||||
local utils = require('solarized.utils')
|
||||
local colortool = require('solarized.utils.colors')
|
||||
local darken = colortool.darken
|
||||
local lighten = colortool.lighten
|
||||
local set_hl = utils.set_hl
|
||||
|
||||
set_hl('LspReferenceText', { link = 'Visual' }) -- used for highlighting "text" references
|
||||
set_hl('LspReferenceRead', { link = 'Visual' }) -- used for highlighting "read" references
|
||||
set_hl('LspReferenceWrite', { link = 'Visual' }) -- used for highlighting "write" references
|
||||
|
||||
set_hl('LspInlayHint', { fg = c.yellow })
|
||||
if vim.o.background == 'dark' then
|
||||
set_hl('LspInlayHint', { fg = darken(c.yellow, 20) }) -- used for highlighting inlay hints
|
||||
else
|
||||
set_hl('LspInlayHint', { fg = lighten(c.yellow, 20) })
|
||||
end
|
||||
|
||||
-- if you want to me to enable the highlight groups bellow, please send a screenshot for me to see how
|
||||
-- they look like or how to config for me to test.
|
||||
|
|
|
|||
Loading…
Reference in a new issue