Skip to content

Commit

Permalink
fix: lsp-inlay-hint
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmx03 committed Dec 15, 2023
1 parent f746e3b commit 1bf88d2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lua/solarized/themes/default/lsp.lua
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 1bf88d2

Please sign in to comment.