From 8583ca39dd4098e09cbb66178cc213cb864a0063 Mon Sep 17 00:00:00 2001 From: Evgeni Chasnovski Date: Fri, 2 Sep 2022 08:54:15 +0300 Subject: [PATCH] feat: Add explicit support for 'mini.nvim'. (#179) --- README.md | 1 + lua/tokyonight/theme.lua | 54 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) diff --git a/README.md b/README.md index 4ba4731..22d2e36 100644 --- a/README.md +++ b/README.md @@ -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) - [Fern](https://github.com/lambdalisue/fern.vim) - [Barbar](https://github.com/romgrk/barbar.nvim) +- [Mini](https://github.com/echasnovski/mini.nvim) ## ⚡️ Requirements diff --git a/lua/tokyonight/theme.lua b/lua/tokyonight/theme.lua index d977c74..a987b48 100644 --- a/lua/tokyonight/theme.lua +++ b/lua/tokyonight/theme.lua @@ -460,6 +460,57 @@ function M.setup(config) CmpItemKindEnumMember = { fg = c.green1, bg = c.none }, CmpItemKindOperator = { fg = c.green1, 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 = {} @@ -474,6 +525,9 @@ function M.setup(config) for _, section in ipairs({ "a", "b", "c" }) do theme.defer["lualine_" .. section .. "_inactive"] = inactive end + + -- mini.statusline + theme.plugins.MiniStatuslineInactive = inactive end return theme