Skip to content

Commit

Permalink
fix get a link highlight group failed
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed May 19, 2024
1 parent ca003fb commit df5dbd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lspsaga/highlight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ local function init_highlight()
end

for _, v in ipairs(vim.diagnostic.severity) do
local color = api.nvim_get_hl(0, { name = 'Diagnostic' .. v })
local color = api.nvim_get_hl(0, { name = 'Diagnostic' .. v, link = true })
api.nvim_set_hl(0, 'Diagnostic' .. v .. 'Reverse', {
bg = color.fg,
fg = 'Black',
Expand Down

0 comments on commit df5dbd1

Please sign in to comment.