feat: Add explicit support for 'mini.nvim'. (#179)

This commit is contained in:
Evgeni Chasnovski 2022-09-02 08:54:15 +03:00 committed by GitHub
parent eb6803854a
commit 8583ca39dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 55 additions and 0 deletions

View File

@ -43,6 +43,7 @@ A dark and light Neovim theme written in Lua ported from the Visual Studio Code
- [vim-sneak](https://github.com/justinmk/vim-sneak) - [vim-sneak](https://github.com/justinmk/vim-sneak)
- [Fern](https://github.com/lambdalisue/fern.vim) - [Fern](https://github.com/lambdalisue/fern.vim)
- [Barbar](https://github.com/romgrk/barbar.nvim) - [Barbar](https://github.com/romgrk/barbar.nvim)
- [Mini](https://github.com/echasnovski/mini.nvim)
## ⚡️ Requirements ## ⚡️ Requirements

View File

@ -460,6 +460,57 @@ function M.setup(config)
CmpItemKindEnumMember = { fg = c.green1, bg = c.none }, CmpItemKindEnumMember = { fg = c.green1, bg = c.none },
CmpItemKindOperator = { fg = c.green1, bg = c.none }, CmpItemKindOperator = { fg = c.green1, bg = c.none },
CmpItemKindSnippet = { fg = c.dark5, bg = c.none }, CmpItemKindSnippet = { fg = c.dark5, bg = c.none },
-- Mini
MiniCompletionActiveParameter = { style = "underline" },
MiniCursorword = { bg = c.fg_gutter },
MiniCursorwordCurrent = { bg = c.fg_gutter },
MiniIndentscopeSymbol = { fg = c.blue1 },
MiniIndentscopePrefix = { style = "nocombine" }, -- Make it invisible
MiniJump = { fg = c.bg_highlight, bg = c.magenta },
MiniJump2dSpot = { fg = c.magenta2, style = "bold,nocombine" },
MiniStarterCurrent = { style = "nocombine" },
MiniStarterFooter = { fg = c.yellow, style = "italic" },
MiniStarterHeader = { fg = c.blue },
MiniStarterInactive = { fg = c.comment, style = config.commentStyle },
MiniStarterItem = { fg = c.fg, bg = config.transparent and c.none or c.bg },
MiniStarterItemBullet = { fg = c.border_highlight },
MiniStarterItemPrefix = { fg = c.warning },
MiniStarterSection = { fg = c.blue1 },
MiniStarterQuery = { fg = c.info },
MiniStatuslineDevinfo = { fg = c.fg_dark, bg = c.bg_highlight },
MiniStatuslineFileinfo = { fg = c.fg_dark, bg = c.bg_highlight },
MiniStatuslineFilename = { fg = c.fg_dark, bg = c.fg_gutter },
MiniStatuslineInactive = { fg = c.blue, bg = c.bg_statusline },
MiniStatuslineModeCommand = { fg = c.black, bg = c.yellow, style = "bold" },
MiniStatuslineModeInsert = { fg = c.black, bg = c.green, style = "bold" },
MiniStatuslineModeNormal = { fg = c.black, bg = c.blue, style = "bold" },
MiniStatuslineModeOther = { fg = c.black, bg = c.teal, style = "bold" },
MiniStatuslineModeReplace = { fg = c.black, bg = c.red, style = "bold" },
MiniStatuslineModeVisual = { fg = c.black, bg = c.magenta, style = "bold" },
MiniSurround = { bg = c.orange, fg = c.black },
MiniTablineCurrent = { fg = c.fg, bg = c.fg_gutter },
MiniTablineFill = { bg = c.black },
MiniTablineHidden = { fg = c.dark5, bg = c.bg_statusline },
MiniTablineModifiedCurrent = { fg = c.warning, bg = c.fg_gutter },
MiniTablineModifiedHidden = { bg = c.bg_statusline, fg = util.darken(c.warning, 0.7) },
MiniTablineModifiedVisible = { fg = c.warning, bg = c.bg_statusline },
MiniTablineTabpagesection = { bg = c.bg_statusline, fg = c.none },
MiniTablineVisible = { fg = c.fg, bg = c.bg_statusline },
MiniTestEmphasis = { style = "bold" },
MiniTestFail = { fg = c.red, style = "bold"},
MiniTestPass = { fg = c.green, style = "bold"},
MiniTrailspace = { bg = c.red },
} }
theme.defer = {} theme.defer = {}
@ -474,6 +525,9 @@ function M.setup(config)
for _, section in ipairs({ "a", "b", "c" }) do for _, section in ipairs({ "a", "b", "c" }) do
theme.defer["lualine_" .. section .. "_inactive"] = inactive theme.defer["lualine_" .. section .. "_inactive"] = inactive
end end
-- mini.statusline
theme.plugins.MiniStatuslineInactive = inactive
end end
return theme return theme