Skip to content

Commit

Permalink
feat(theme): add support for blink and snacks plugins
Browse files Browse the repository at this point in the history
- Update the plugin list in lua/monokai-pro/theme/init.lua by adding "blink" and "snacks"
- Enhance integration with additional UI components for improved functionality
  • Loading branch information
loctvl842 committed Feb 24, 2025
1 parent 6c15e36 commit 2f239fd
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/monokai-pro/theme/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ local PLUGINS = {
"aerial",
"alpha",
"beacon",
"blink",
"breadcrumb",
"bufferline",
"cmp",
Expand All @@ -44,6 +45,7 @@ local PLUGINS = {
"rainbow-delimiters",
"renamer",
"scrollbar",
"snacks",
"telescope",
"toggleterm",
"ufo",
Expand Down
61 changes: 61 additions & 0 deletions lua/monokai-pro/theme/plugins/blink.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
local M = {}

--- @param c Colorscheme The color palette
--- @param config Config
--- @param hp Helper
function M.get(c, config, hp)
local float_winBackgroundClear = vim.tbl_contains(config.background_clear, "float_win")
return {
BlinkCmpMenu = { bg = c.editorSuggestWidget.background, fg = hp.lighten(c.editorSuggestWidget.foreground, -15) },
-- BlinkCmpMenuSelection = float_winBackgroundClear and {
-- bg = hp.blend(c.editorSuggestWidget.selectedBackground, 0.7),
-- bold = true,
-- } or {
-- fg = hp.lighten(c.base.yellow, -15),
-- bg = c.editorSuggestWidget.selectedBackground,
-- bold = true,
-- },
BlinkCmpLabelDescription = { fg = hp.lighten(c.base.dimmed1, 3) },
BlinkCmpLabelDeprecated = { fg = nil, bg = nil, strikethrough = true },
BlinkCmpGhostText = { link = "Comment" },
BlinkCmpLabel = { fg = hp.lighten(c.editorSuggestWidget.foreground, -15) },
BlinkCmpLabelMatch = { fg = c.editorSuggestWidget.highlightForeground, bold = true },
BlinkCmpSource = { fg = c.editorSuggestWidget.foreground },
BlinkCmpKind = { fg = hp.lighten(c.editorSuggestWidget.foreground, -15) },
BlinkCmpKindArray = { fg = c.base.red },
BlinkCmpKindBoolean = { fg = c.base.red },
BlinkCmpKindClass = { fg = c.base.cyan },
BlinkCmpKindColor = { fg = c.base.magenta },
BlinkCmpKindConstant = { fg = c.base.magenta },
BlinkCmpKindConstructor = { fg = c.base.green },
BlinkCmpKindEnum = { fg = c.base.blue },
BlinkCmpKindEnumMember = { fg = c.base.blue },
BlinkCmpKindEvent = { fg = c.base.blue },
BlinkCmpKindField = { fg = c.base.blue },
BlinkCmpKindFile = { fg = c.editorLineNumber.activeForeground },
BlinkCmpKindFolder = { fg = c.editorLineNumber.activeForeground },
BlinkCmpKindFunction = { fg = c.base.green },
BlinkCmpKindInterface = { fg = c.base.cyan },
BlinkCmpKindKey = { fg = c.base.blue },
BlinkCmpKindKeyword = { fg = c.base.red },
BlinkCmpKindMethod = { fg = c.base.green },
BlinkCmpKindModule = { fg = c.base.cyan },
BlinkCmpKindNamespace = { fg = c.base.cyan },
BlinkCmpKindNull = { fg = c.base.magenta },
BlinkCmpKindNumber = { fg = c.base.magenta },
BlinkCmpKindObject = { fg = c.base.cyan },
BlinkCmpKindOperator = { fg = c.base.red },
BlinkCmpKindPackage = { fg = c.base.magenta },
BlinkCmpKindProperty = { fg = c.base.blue },
BlinkCmpKindReference = { fg = c.base.magenta },
BlinkCmpKindSnippet = { fg = c.base.green },
BlinkCmpKindString = { fg = c.base.yellow },
BlinkCmpKindStruct = { fg = c.base.red },
BlinkCmpKindText = { fg = c.base.yellow },
BlinkCmpKindTypeParameter = { fg = c.base.blue },
BlinkCmpKindUnit = { fg = c.base.magenta },
BlinkCmpKindVariable = { fg = c.base.cyan },
}
end

return M
12 changes: 12 additions & 0 deletions lua/monokai-pro/theme/plugins/snacks.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
local M = {}

--- @param c Colorscheme The color palette
function M.get(c, _, hp)
return {
SnacksDashboardNormal = { bg = c.editor.background, fg = c.editor.foreground },
SnacksDashboardDesc = { fg = c.base.dimmed1 },
SnacksDashboardIcon = { fg = c.base.blue },
}
end

return M

0 comments on commit 2f239fd

Please sign in to comment.