From 650799fa243132645e5bac82346f653105462e2c Mon Sep 17 00:00:00 2001 From: Yuhf7 <77704716+Yuhf7@users.noreply.github.com> Date: Sat, 24 Jun 2023 18:41:11 +0100 Subject: [PATCH] fix(inlay_hints): surround `or` logic with parens (#523) --- lua/catppuccin/groups/integrations/native_lsp.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/catppuccin/groups/integrations/native_lsp.lua b/lua/catppuccin/groups/integrations/native_lsp.lua index be960edc..a62d04d6 100644 --- a/lua/catppuccin/groups/integrations/native_lsp.lua +++ b/lua/catppuccin/groups/integrations/native_lsp.lua @@ -89,8 +89,8 @@ function M.get() -- fg of `Comment` fg = C.overlay0, -- bg of `CursorLine` - bg = O.transparent_background - or not inlay_hints.background and C.none + bg = (O.transparent_background + or not inlay_hints.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