Skip to content

Commit 126a9a9

Browse files
committed
feat(hues): add 'folke/snacks.nvim' integration
Details: - It was not explicitly added before because everything mostly seemed to work out of the box. However, there are a lot 'snacks.picker' highlight groups that link to `NonText` but are expected to be readable. This conflicts with `CursorLine` like groups (used to show current item) since its background is the same as `NonText` foreground.
1 parent 7e55c3d commit 126a9a9

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ There are following change types:
88

99
# Version 0.18.0-dev
1010

11+
## mini.hues
12+
13+
### Expand
14+
15+
- Add new plugin integrations:
16+
- 'folke/snacks.nvim'
17+
1118
## mini.misc
1219

1320
### Evolve

doc/mini-hues.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Supported highlight groups:
4141
- [DanilaMihailov/beacon.nvim](https://github.com/DanilaMihailov/beacon.nvim)
4242
- [folke/lazy.nvim](https://github.com/folke/lazy.nvim)
4343
- [folke/noice.nvim](https://github.com/folke/noice.nvim)
44+
- [folke/snacks.nvim](https://github.com/folke/snacks.nvim)
4445
- [folke/todo-comments.nvim](https://github.com/folke/todo-comments.nvim)
4546
- [folke/trouble.nvim](https://github.com/folke/trouble.nvim)
4647
- [folke/which-key.nvim](https://github.com/folke/which-key.nvim)

lua/mini/hues.lua

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
--- - [DanilaMihailov/beacon.nvim](https://github.com/DanilaMihailov/beacon.nvim)
4040
--- - [folke/lazy.nvim](https://github.com/folke/lazy.nvim)
4141
--- - [folke/noice.nvim](https://github.com/folke/noice.nvim)
42+
--- - [folke/snacks.nvim](https://github.com/folke/snacks.nvim)
4243
--- - [folke/todo-comments.nvim](https://github.com/folke/todo-comments.nvim)
4344
--- - [folke/trouble.nvim](https://github.com/folke/trouble.nvim)
4445
--- - [folke/which-key.nvim](https://github.com/folke/which-key.nvim)
@@ -1100,6 +1101,19 @@ MiniHues.apply_palette = function(palette, plugins, opts)
11001101
hi('NoiceConfirmBorder', { fg=p.yellow, bg=nil })
11011102
end
11021103

1104+
if has_integration('folke/snacks.nvim') then
1105+
hi('SnacksPickerBufFlags', { link='Comment' })
1106+
hi('SnacksPickerDir', { link='Comment' })
1107+
hi('SnacksPickerGitStatusIgnored', { link='Comment' })
1108+
hi('SnacksPickerGitStatusUntracked', { link='Comment' })
1109+
hi('SnacksPickerKeymapRhs', { link='Comment' })
1110+
hi('SnacksPickerListCursorLine', { link='CursorLine' })
1111+
hi('SnacksPickerPathHidden', { link='Comment' })
1112+
hi('SnacksPickerPathIgnored', { link='Comment' })
1113+
hi('SnacksPickerTotals', { link='Comment' })
1114+
hi('SnacksPickerUnselected', { link='Comment' })
1115+
end
1116+
11031117
-- folke/trouble.nvim
11041118
if has_integration('folke/trouble.nvim') then
11051119
hi('TroubleCount', { fg=p.accent, bg=nil, bold=true })

readmes/mini-hues.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ Supported highlight groups:
130130
- [DanilaMihailov/beacon.nvim](https://github.com/DanilaMihailov/beacon.nvim)
131131
- [folke/lazy.nvim](https://github.com/folke/lazy.nvim)
132132
- [folke/noice.nvim](https://github.com/folke/noice.nvim)
133+
- [folke/snacks.nvim](https://github.com/folke/snacks.nvim)
133134
- [folke/todo-comments.nvim](https://github.com/folke/todo-comments.nvim)
134135
- [folke/trouble.nvim](https://github.com/folke/trouble.nvim)
135136
- [folke/which-key.nvim](https://github.com/folke/which-key.nvim)

0 commit comments

Comments
 (0)