Skip to content

Commit

Permalink
Merge pull request #166 from echasnovski/mini
Browse files Browse the repository at this point in the history
Add explicit support for 'mini.nvim'
  • Loading branch information
pocco81 authored Jul 11, 2022
2 parents 5369888 + ed15ce5 commit 8ef5823
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ This port of Catppuccin is special because it was the first one and the one that
- [Telekasten](https://github.com/renerocksai/telekasten.nvim)
- [Notify](https://github.com/rcarriga/nvim-notify)
- [Symbols-Outline](https://github.com/simrat39/symbols-outline.nvim)
- [Mini.nvim](https://github.com/echasnovski/mini.nvim)

## Usage

Expand Down Expand Up @@ -149,6 +150,7 @@ integrations = {
notify = true,
telekasten = true,
symbols_outline = true,
mini = false,
}
```

Expand Down
62 changes: 62 additions & 0 deletions lua/catppuccin/core/integrations/mini.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
local M = {}

function M.get(cp)
local transparent_background = require("catppuccin.config").options.transparent_background
local bg_highlight = transparent_background and "NONE" or cp.base

local inactive_bg = transparent_background and "NONE" or cp.mantle

return {
MiniCompletionActiveParameter = { style = "underline" },

MiniCursorword = { style = "underline" },
MiniCursorwordCurrent = { style = "underline" },

MiniIndentscopeSymbol = { fg = cp.text },
MiniIndentscopePrefix = { style = "nocombine" }, -- Make it invisible

MiniJump = { fg = cp.overlay2, bg = cp.pink },

MiniJump2dSpot = { bg = cp.base, fg = cp.peach, style = "bold,underline" },

MiniStarterCurrent = {},
MiniStarterFooter = { fg = cp.yellow, style = "italic" },
MiniStarterHeader = { fg = cp.blue },
MiniStarterInactive = { fg = cp.surface2, style = cnf.styles.comments },
MiniStarterItem = { fg = cp.text },
MiniStarterItemBullet = { fg = cp.blue },
MiniStarterItemPrefix = { fg = cp.pink },
MiniStarterSection = { fg = cp.flamingo },
MiniStarterQuery = { fg = cp.green },

MiniStatuslineDevinfo = { fg = cp.subtext1, bg = cp.surface1 },
MiniStatuslineFileinfo = { fg = cp.subtext1, bg = cp.surface1 },
MiniStatuslineFilename = { fg = cp.text, bg = cp.mantle },
MiniStatuslineInactive = { fg = cp.blue, bg = cp.mantle },
MiniStatuslineModeCommand = { fg = cp.base, bg = cp.peach, style = "bold" },
MiniStatuslineModeInsert = { fg = cp.base, bg = cp.green, style = "bold" },
MiniStatuslineModeNormal = { fg = cp.mantle, bg = cp.blue, style = "bold" },
MiniStatuslineModeOther = { fg = cp.base, bg = cp.teal, style = "bold" },
MiniStatuslineModeReplace = { fg = cp.base, bg = cp.red, style = "bold" },
MiniStatuslineModeVisual = { fg = cp.base, bg = cp.mauve, style = "bold" },

MiniSurround = { bg = cp.pink, fg = cp.surface1 },

MiniTablineCurrent = { fg = cp.text, bg = cp.base, style = "bold,italic" },
MiniTablineFill = { bg = bg_highlight },
MiniTablineHidden = { fg = cp.text, bg = inactive_bg },
MiniTablineModifiedCurrent = { fg = cp.base, bg = cp.text, style = "bold,italic" },
MiniTablineModifiedHidden = { fg = inactive_bg, bg = cp.text },
MiniTablineModifiedVisible = { fg = cp.surface1, bg = cp.subtext1 },
MiniTablineTabpagesection = { fg = cp.surface1, bg = cp.base },
MiniTablineVisible = { fg = cp.subtext1, bg = cp.surface1 },

MiniTestEmphasis = { style = "bold" },
MiniTestFail = { fg = cp.red, style = "bold" },
MiniTestPass = { fg = cp.green, style = "bold" },

MiniTrailspace = { bg = cp.red },
}
end

return M

0 comments on commit 8ef5823

Please # to comment.