Skip to content

Commit

Permalink
feat: support fzf-lua
Browse files Browse the repository at this point in the history
  • Loading branch information
loctvl842 committed Sep 18, 2024
1 parent 4431726 commit 5fff1b3
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lua/monokai-pro/theme/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ local PLUGINS = {
"cmp",
"coc",
"dashboard",
"fidget",
"fzf-lua",
"gitsign",
"illuminate",
"indent_blankline",
Expand Down
32 changes: 32 additions & 0 deletions lua/monokai-pro/theme/plugins/fzf-lua.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
local M = {}

--- @param c Colorscheme The color palette
--- @param config Config
--- @param hp Helper
function M.get(c, config, hp)
local transparent_bg = c.editor.background

local common_fg = hp.lighten(c.sideBar.foreground, 30)

return {
FzfLuaNormal = { bg = transparent_bg, fg = common_fg },
FzfLuaBorder = { bg = transparent_bg, fg = c.tab.unfocusedActiveBorder },
FzfLuaTitle = { bg = c.base.yellow, fg = c.base.black, bold = true },
FzfLuaBackdrop = { bg = c.base.dark },
FzfLuaPreviewNormal = { bg = transparent_bg },
FzfLuaPreviewBorder = { link = "FzfLuaBorder" },
FzfLuaPreviewTitle = { bg = hp.lighten(transparent_bg, 3), fg = c.base.blue, bold = true },
FzfLuaCursorLine = { bg = hp.blend(c.editorSuggestWidget.selectedBackground, 0.3, transparent_bg), bold = true },
FzfLuaScrollBorderEmpty = { link = "FzfLuaBorder" },
FzfLuaScrollBorderFull = { link = "FzfLuaBorder" },
FzfLuaHelpNormal = { bg = transparent_bg, fg = common_fg },
FzfLuaHelpBorder = { bg = transparent_bg, fg = c.base.green },
FzfLuaHeaderBind = { fg = c.base.cyan },
FzfLuaHeaderText = { fg = c.base.green },
FzfLuaFzfHeader = { fg = common_fg },
FzfLuaFzfInfo = { fg = c.base.dimmed3 },
FzfLuaFzfPointer = { fg = c.base.blue },
}
end

return M
2 changes: 1 addition & 1 deletion lua/monokai-pro/theme/plugins/which-key.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function M.get(c, config, _)
WhichKeySeperator = { fg = c.base.red },
WhichKeyGroup = { fg = c.base.magenta },
WhichKeyDesc = { fg = c.base.yellow },
WhichKeyFloat = { bg = isBackgroundClear and transparent_bg or whichkey_bg },
WhichKeyNormal = { bg = isBackgroundClear and transparent_bg or whichkey_bg },
WhichKeyBorder = isBackgroundClear and {
bg = transparent_bg,
fg = transparent_bg_border,
Expand Down

0 comments on commit 5fff1b3

Please sign in to comment.