Skip to content

Commit

Permalink
fix(lsp): do not link LspInlayHint to Comment directly (#517)
Browse files Browse the repository at this point in the history
* fix(lsp): do not link `LspInlayHint` to `Comment` directly

* fix(lsp): remove inlay-hint background color when `transparent_background` is set

Co-authored-by: mrtnvgr <[email protected]>

* fix: move comment up

---------

Co-authored-by: mrtnvgr <[email protected]>
  • Loading branch information
ofseed and mrtnvgr committed Jun 22, 2023
1 parent d32b0bb commit 5dc566c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lua/catppuccin/groups/integrations/native_lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,13 @@ function M.get()
LspDiagnosticsUnderlineInformation = { style = underlines.information, sp = info }, -- Used to underline "Information" diagnostics
LspDiagnosticsUnderlineHint = { style = underlines.hints, sp = hint }, -- Used to underline "Hint" diagnostics
LspCodeLens = { fg = C.overlay0 }, -- virtual text of the codelens
LspInlayHint = { link = "Comment" }, -- virtual text of the inlay hints
LspInlayHint = {
-- fg of `Comment`
fg = C.overlay0,
-- bg of `CursorLine`
bg = O.transparent_background and C.none
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
}
end
Expand Down

0 comments on commit 5dc566c

Please sign in to comment.