From 6cc8e96880be09cb26981e6ffc17d6851fe5d0f0 Mon Sep 17 00:00:00 2001 From: Mandy Noto Date: Sat, 21 Jan 2023 13:30:26 -0800 Subject: [PATCH] feat(theme): make cmppmenusel dynamic --- lua/rose-pine/theme.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lua/rose-pine/theme.lua b/lua/rose-pine/theme.lua index cbca564..8df165e 100644 --- a/lua/rose-pine/theme.lua +++ b/lua/rose-pine/theme.lua @@ -404,10 +404,7 @@ function M.get(config) CmpItemKindProperty = { fg="text"}, CmpItemKindString = { fg = p.rose }, CmpItemKindText = { fg = p.pine }, - -- -- TODO: turn to highlight_low for light mode, high for dark - CmpPmenuSel = { bg = 'highlight_high' }, - -- CmpPmenuSel = { bg = p.highlight_med }, - -- CmpPmenuSel = { bg = p.overlay }, + CmpPmenusel = { bg = (vim.opt.background:get()=='light') and "highlight_low" or "highlight_high" }, GhostText = { fg = p.muted }, -- SmiteshP/nvim-navic