Add highlights for all mini.nvim modules

This commit is contained in:
Jan Polak 2023-12-07 11:09:35 +01:00
parent 55454d305b
commit 9904170427
3 changed files with 141 additions and 4 deletions

View File

@ -113,10 +113,10 @@ M.groups = function()
-- The MatchWord groups don't actually exist, but we define them here
-- to link to them in plugin specific files instead of redefining the
-- same group multiple times
["MatchWord"] = { fg = 'NONE', bg = c['ui'], underline = true, },
["MatchParen"] = { fg = 'NONE', bg = c['ui'], underline = true, },
["MatchWordCur"] = { fg = 'NONE', bg = 'NONE', underline = true, },
["MatchParenCur"] = { fg = 'NONE', bg = 'NONE', underline = true, },
["MatchWord"] = { fg = 'NONE', bg = c['ui-2'] },
["MatchParen"] = { fg = 'NONE', bg = c['ui-2'] },
["MatchWordCur"] = { fg = 'NONE', bg = 'NONE' },
["MatchParenCur"] = { fg = 'NONE', bg = 'NONE' },
["Conceal"] = { fg = 'NONE', bg = 'NONE' },
["Directory"] = { fg = c['bl'], bg = 'NONE' },

View File

@ -5,6 +5,7 @@ M.groups = function ()
-- This could be done dynamically by looking for all files, but this approach is fine and is safer
local modules = {
require('flexoki.highlights.base').groups(),
require('flexoki.highlights.mini-nvim').groups(),
-- require('flexoki.highlights.buffer').groups(),
-- require('flexoki.highlights.cmp').groups(),
-- require('flexoki.highlights.dashboard').groups(),

View File

@ -0,0 +1,136 @@
local palette = require('flexoki.palette')
local M = {}
M.groups = function()
local c = palette.palette()
--- @type table<string, vim.api.keyset.highlight>
return {
--#region mini.completion
['MiniCompletionActiveParameter'] = { link = 'Underlined' },
--#endregion
--#region mini.cursorword
['MiniCursorword'] = { link = 'MatchWord' },
['MiniCursorwordCurrent'] = { link = 'MatchWordCur' },
--#endregion
--#region mini.indentscope
['MiniIndentscopeSymbol'] = { fg = c['ui-3'], bg = 'NONE' },
['MiniIndentscopeSymbolOff'] = { link = 'MiniIndentscopeSymbol' },
--#endregion
--#region mini.jump
['MiniJump'] = { fg = c['bg'], bg = c['cy'] },
--#endregion
--#region mini.jump2d
['MiniJump2dSpot'] = { fg = c['bg'], bg = c['cy'] },
['MiniJump2dSpotUnique'] = { fg = c['bg'], bg = c['cy'] },
['MiniJump2dSpotAhead'] = { fg = c['bg'], bg = c['cy-2'] },
['MiniJump2dSpotDim'] = { link = 'Comment' },
--#endregion
--#region mini.trailspace
['MiniTrailspace'] = { fg = c['re'], bg = c['re'] },
--#endregion
--#region mini.tabline
['MiniTablineCurrent'] = { fg = c['cy'], bg = c['ui-3'] },
['MiniTablineVisible'] = { fg = c['tx-2'], bg = c['ui-2'] },
['MiniTablineHidden'] = { fg = c['tx-2'], bg = c['ui'] },
['MiniTablineModifiedCurrent'] = { fg = c['or'], bg = c['ui-3'] },
['MiniTablineModifiedVisible'] = { fg = c['or'], bg = c['ui-2'] },
['MiniTablineModifiedHidden'] = { fg = c['or-2'], bg = c['ui'] },
['MiniTablineFill'] = { fg = 'NONE', bg = c['bg-2'] },
['MiniTablineTabpagesection'] = { fg = c['tx'], bg = c['cy-2'] },
--#endregion
--#region mini.surround
['MiniSurround'] = { link = "Search" },
--#endregion
--#region mini.statusline
['MiniStatuslineModeNormal'] = { fg = c['bg'], bg = c['ye-2'] },
['MiniStatuslineModeInsert'] = { fg = c['bg'], bg = c['cy-2'] },
['MiniStatuslineModeVisual'] = { fg = c['bg'], bg = c['gr-2'] },
['MiniStatuslineModeReplace'] = { fg = c['bg'], bg = c['re-2'] },
['MiniStatuslineModeCommand'] = { fg = c['bg'], bg = c['bl-2'] },
['MiniStatuslineModeOther'] = { fg = c['bg'], bg = c['ma-2'] },
['MiniStatuslineDevinfo'] = { fg = c['tx'], bg = c['ui-2'] },
['MiniStatuslineFilename'] = { fg = c['tx-2'], bg = c['ui'] },
['MiniStatuslineFileinfo'] = { fg = c['tx'], bg = c['ui-2'] },
--#endregion
--
--#region mini.starter
['MiniStarterCurrent'] = { fg = 'NONE', bg = c['bg-2'] },
['MiniStarterFooter'] = { fg = c['tx'], bg = 'NONE' },
['MiniStarterHeader'] = { fg = c['tx'], bg = 'NONE' },
['MiniStarterInactive'] = { fg = c['ui'], bg = 'NONE' },
['MiniStarterItem'] = { fg = c['tx'], bg = 'NONE' },
['MiniStarterItemBullet'] = { fg = c['tx'], bg = 'NONE' },
['MiniStarterItemPrefix'] = { fg = c['cy'], bg = 'NONE' },
['MiniStarterSection'] = { fg = c['tx-3'], bg = 'NONE' },
['MiniStarterQuery'] = { fg = c['tx'], bg = 'NONE' },
--#endregion
--#region mini.pick
['MiniPickBorder'] = { fg = c['ui-3'], bg = c['bg'] },
['MiniPickBorderBusy'] = { fg = c['ui'], bg = c['bg'] },
['MiniPickBorderText'] = { fg = c['tx-2'], bg = c['bg'] },
['MiniPickIconDirectory'] = { fg = c['bl'], bg = c['bg'] },
['MiniPickIconFile'] = { fg = c['cy'], bg = c['bg'] },
['MiniPickHeader'] = { fg = c['tx'], bg = c['bg'] },
['MiniPickMatchCurrent'] = { fg = c['gr'], bg = c['bg'] },
['MiniPickMatchMarked'] = { fg = c['bl'], bg = c['bg'] },
['MiniPickMatchRanges'] = { fg = c['gr'], bg = c['bg'] },
['MiniPickNormal'] = { fg = 'NONE', bg = 'NONE' },
['MiniPickPreviewLine'] = { link = 'Visual' },
['MiniPickPreviewRegion'] = { link = 'Visual' },
['MiniPickPrompt'] = { fg = c['tx'], bg = c['bg'] },
--#endregion
--#region mini.operators
['MiniOperatorsExchangeFrom'] = { fg = c['tx'], bg = c['re'] },
--#endregion
--#region mini.map
['MiniMapNormal'] = { fg = c['tx-3'], bg = c['bg-2'] },
['MiniMapSymbolCount'] = { fg = c['tx'], bg = c['bg'] },
['MiniMapSymbolLine'] = { fg = c['tx-2'], bg = c['bg-2'] },
['MiniMapSymbolView'] = { fg = c['tx-2'], bg = c['bg-2'] },
--#endregion
}
end
return M