Skip to content

Commit

Permalink
feat(highlights): add mason support (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineco authored May 31, 2024
1 parent da003ec commit 2f7a501
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ A colorscheme for [Neovim](https://github.com/neovim/neovim). Pleasant and produ
- [Aerial](https://github.com/stevearc/aerial.nvim)
- [Neotest](https://github.com/nvim-neotest/neotest)
- [Lazy](https://github.com/folke/lazy.nvim)
- [Mason](https://github.com/williamboman/mason.nvim)

## Installation and usage
Example with [packer.nvim](https://github.com/wbthomason/packer.nvim):
Expand Down
1 change: 1 addition & 0 deletions lua/mellifluous/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ local config = {
aerial = true,
neotest = true,
lazy = true,
mason = true,
},
dim_inactive = false,
styles = {
Expand Down
17 changes: 17 additions & 0 deletions lua/mellifluous/highlights/plugins/mason.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
local M = {}

function M.set(hl, colors)
local config = require('mellifluous.config').config

hl.set('MasonHeader', { fg = colors.dark_bg, bg = colors.ui_orange, bold = true })
hl.set('MasonHeaderSecondary', { fg = colors.dark_bg, bg = colors.ui_blue, bold = true })
hl.set('MasonHighlightBlockBold', { fg = colors.fg, bg = config.is_bg_dark and colors.bg5 or colors.bg4, bold = true })
hl.set('MasonHighlightBlockBoldSecondary', { link = 'MasonHighlightBlockBold' })
hl.set('MasonHighlightBlock', { fg = colors.dark_bg, bg = colors.ui_green })
hl.set('MasonMutedBlock', { fg = colors.fg2, bg = colors.bg })
hl.set('MasonHighlight', { fg = colors.ui_yellow })
hl.set('MasonHighlightSecondary', { fg = colors.ui_purple })
hl.set('MasonMuted', { fg = colors.fg3 })
end

return M

0 comments on commit 2f7a501

Please sign in to comment.