Skip to content

Commit

Permalink
Merge pull request #83 from santoso-wijaya/main
Browse files Browse the repository at this point in the history
Simplify LspInlayHint highlight setting
  • Loading branch information
maxmx03 committed Jun 11, 2024
2 parents 84d1988 + 3bfbb3a commit 6875d60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
10 changes: 1 addition & 9 deletions lua/solarized/themes/default/lsp.lua
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
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

if vim.o.background == 'dark' then
set_hl('LspInlayHint', { fg = c.base01 }) -- used for highlighting inlay hints
else
set_hl('LspInlayHint', { fg = lighten(c.base01, 30) })
end
set_hl('LspInlayHint', { fg = c.base01 }) -- used for highlighting inlay hints

-- 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
10 changes: 1 addition & 9 deletions lua/solarized/themes/neo/lsp.lua
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
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

if vim.o.background == 'dark' then
set_hl('LspInlayHint', { fg = c.base01 }) -- used for highlighting inlay hints
else
set_hl('LspInlayHint', { fg = lighten(c.base01, 30) })
end
set_hl('LspInlayHint', { fg = c.base01 }) -- used for highlighting inlay hints

-- 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 6875d60

Please sign in to comment.