Skip to content

Commit

Permalink
feat(highlights): add lazy support
Browse files Browse the repository at this point in the history
  • Loading branch information
ramojus committed May 25, 2024
1 parent 48e89d7 commit 7d2397f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ A colorscheme for [Neovim](https://github.com/neovim/neovim). Pleasant and produ
- [Nvim-notify](https://github.com/rcarriga/nvim-notify)
- [Aerial](https://github.com/stevearc/aerial.nvim)
- [Neotest](https://github.com/nvim-neotest/neotest)
- [Lazy](https://github.com/folke/lazy.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 @@ -22,6 +22,7 @@ local config = {
nvim_notify = true,
aerial = true,
neotest = true,
lazy = true,
},
dim_inactive = false,
styles = {
Expand Down
19 changes: 19 additions & 0 deletions lua/mellifluous/highlights/plugins/lazy.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
local M = {}

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

hl.set('LazyNormal', { bg = colors.bg2 })
hl.set('LazyButton', { fg = colors.fg2, bg = colors.bg })
hl.set('LazyButtonActive', { fg = colors.fg, bg = config.is_bg_dark and colors.bg5 or colors.bg4 })
hl.set('LazyH1', { link = 'LazyButtonActive' })

hl.set('LazyProgressTodo', { fg = config.is_bg_dark and colors.fg5 or colors.dark_bg })
hl.set('LazyProgressDone', { fg = colors.fg })

hl.set('LazyDimmed', { fg = colors.fg3 })
hl.set('LazyProp', { link = 'LazyDimmed' })
end

return M

0 comments on commit 7d2397f

Please sign in to comment.