Skip to content

Commit

Permalink
fix(lsp): remove inlay-hint background color when `transparent_backgr…
Browse files Browse the repository at this point in the history
…ound` is set

Co-authored-by: mrtnvgr <48406064+mrtnvgr@users.noreply.github.com>
  • Loading branch information
ofseed and mrtnvgr committed Jun 21, 2023
1 parent 8156aee commit a722401
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lua/catppuccin/groups/integrations/native_lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ function M.get()
LspInlayHint = {
-- fg of `Comment`
fg = C.overlay0,
-- bg of `CursorLine`
bg = U.vary_color({ latte = U.lighten(C.mantle, 0.70, C.base) }, U.darken(C.surface0, 0.64, C.base)),
bg = O.transparent_background and C.none
-- bg of `CursorLine`
or U.vary_color({ latte = U.lighten(C.mantle, 0.70, C.base) }, U.darken(C.surface0, 0.64, C.base)),
}, -- virtual text of the inlay hints
LspInfoBorder = { link = "FloatBorder" }, -- LspInfo border
}
Expand Down

0 comments on commit a722401

Please sign in to comment.