Skip to content

Commit cc30149

Browse files
committed
Merge branch 'main' into refactor/syntax-highlighting
2 parents 395d541 + 135f9b0 commit cc30149

15 files changed

+357
-109
lines changed

CHANGELOG.md

+31
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
# Changelog
22

3+
## [1.4.0](https://github.com/catppuccin/nvim/compare/v1.3.0...v1.4.0) (2023-08-21)
4+
5+
6+
### Features
7+
8+
* add ability to enable/disable all integrations by default ([#552](https://github.com/catppuccin/nvim/issues/552)) ([737f60a](https://github.com/catppuccin/nvim/commit/737f60a3a25c79d9bb9574092f6c6c958a3d747a))
9+
* add flash.nvim integration ([#550](https://github.com/catppuccin/nvim/issues/550)) ([381eddd](https://github.com/catppuccin/nvim/commit/381edddc4ad12126cfa7276818bca07c3d5606ed))
10+
* enable neogit by default ([91f9f6f](https://github.com/catppuccin/nvim/commit/91f9f6fb413caff2bd06e326ec174deee1c1b7a9)), closes [#568](https://github.com/catppuccin/nvim/issues/568)
11+
* **flash:** enable by default ([#551](https://github.com/catppuccin/nvim/issues/551)) ([a84ee18](https://github.com/catppuccin/nvim/commit/a84ee1848bfac4601771805396552bdbaa0a0e91))
12+
* **gitsigns:** Support GitSignsCurrentLineBlame highlights ([#567](https://github.com/catppuccin/nvim/issues/567)) ([3fdd394](https://github.com/catppuccin/nvim/commit/3fdd3942567503d23b65ccc21e7d7757334defd5))
13+
* **lspsaga:** support v0.3 ([#543](https://github.com/catppuccin/nvim/issues/543)) ([3ffd2f5](https://github.com/catppuccin/nvim/commit/3ffd2f511f3dc6c01258923d7170ccaf1445634b))
14+
* **lspsaga:** upstream new hl groups ([#544](https://github.com/catppuccin/nvim/issues/544)) ([e0dd3f9](https://github.com/catppuccin/nvim/commit/e0dd3f9bb1513c98ab4ef9404ea26e18babf858a))
15+
* **neogit:** update highlights ([#545](https://github.com/catppuccin/nvim/issues/545)) ([#549](https://github.com/catppuccin/nvim/issues/549)) ([371430f](https://github.com/catppuccin/nvim/commit/371430f32f2637d2dd5796399b3982d4cada61d8))
16+
* **telescope:** make nvchad style great again ([#538](https://github.com/catppuccin/nvim/issues/538)) ([51961da](https://github.com/catppuccin/nvim/commit/51961da41e8189ca6f9ed73f37dfa83087b4e65c))
17+
* **treesitter-context:** add color for normal background ([#564](https://github.com/catppuccin/nvim/issues/564)) ([b1caff9](https://github.com/catppuccin/nvim/commit/b1caff988fb395c0aae585cecff58b1ffa0a21c6))
18+
19+
20+
### Bug Fixes
21+
22+
* don't highlight fg of `PmenuSel` ([#554](https://github.com/catppuccin/nvim/issues/554)) ([6425df1](https://github.com/catppuccin/nvim/commit/6425df128d46f2db2cccf9aa7a66ca2823c1d153))
23+
* highlight NonText characters ([#547](https://github.com/catppuccin/nvim/issues/547)) ([bfe91df](https://github.com/catppuccin/nvim/commit/bfe91dfb3a19ffd4445e43611fcde68acbb3fed4))
24+
* **integration_default:** hotfix for [#559](https://github.com/catppuccin/nvim/issues/559) ([4913a8b](https://github.com/catppuccin/nvim/commit/4913a8b47554a89a71ed44da39fc1f6e5c2841c3))
25+
* **integration_default:** override `enabled` key only if integration has one ([#559](https://github.com/catppuccin/nvim/issues/559)) ([9709f82](https://github.com/catppuccin/nvim/commit/9709f8251a40e874238d6f9436cf4fba654b60e1))
26+
* **noice:** set background blend to 0 for mini popups ([#556](https://github.com/catppuccin/nvim/issues/556)) ([2d50a4e](https://github.com/catppuccin/nvim/commit/2d50a4e3aecffea4144801bb3c0a3cf7b88fdd6b))
27+
* **nvim-window-picker:** missing table keys ([#569](https://github.com/catppuccin/nvim/issues/569)) ([b9e4dae](https://github.com/catppuccin/nvim/commit/b9e4dae160bf9bc28d4ceb6d29a7e0134b107724))
28+
* **options:** disable deprecated ts_rainbow and ts_rainbow2 by default ([096385d](https://github.com/catppuccin/nvim/commit/096385dd024ecd1332659916fd7f09d7d18d7374))
29+
* **telescope:** keep consistency between the two styles ([#540](https://github.com/catppuccin/nvim/issues/540)) ([dfbc8e2](https://github.com/catppuccin/nvim/commit/dfbc8e2b478a65104d34556698067f2d40f1c227))
30+
* **telescope:** respect transparency ([#542](https://github.com/catppuccin/nvim/issues/542)) ([f36af06](https://github.com/catppuccin/nvim/commit/f36af062e3242f333b12fe9b730053fdda36e000))
31+
* **treesitter:** avoid possible nil ([17ae783](https://github.com/catppuccin/nvim/commit/17ae783b88bb7ae73dc004370473138d9d43ee46))
32+
* **types:** make all options besides nested `enabled` optional ([#565](https://github.com/catppuccin/nvim/issues/565)) ([490078b](https://github.com/catppuccin/nvim/commit/490078b1593c6609e6a50ad5001e7902ea601824))
33+
334
## [1.3.0](https://github.com/catppuccin/nvim/compare/v1.2.0...v1.3.0) (2023-07-10)
435

536

README.md

+46-4
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ local macchiato = require("catppuccin.palettes").get_palette "macchiato"
147147
local mocha = require("catppuccin.palettes").get_palette "mocha"
148148
```
149149

150-
Will returns a table where the key is the name of the color and the value is its hex value corresponding to each flavour.
150+
Returns a table where the key is the name of the color and the value is its hex value corresponding to each flavour.
151151

152152
## Overwriting colors
153153

@@ -400,7 +400,7 @@ coc_nvim = false
400400

401401
<details> <summary>Special</summary>
402402

403-
Setting `enabled` to `true` enables this integration.
403+
Setting `enabled` to `true` enables this integration.
404404

405405
```lua
406406
coc_nvim = true,
@@ -843,7 +843,7 @@ neotree = false
843843
<td>
844844

845845
```lua
846-
neogit = false
846+
neogit = true
847847
```
848848

849849
</td>
@@ -878,6 +878,20 @@ noice = false
878878
</tr>
879879
<!-- noice.nvim -->
880880

881+
<!-- notifier.nvim -->
882+
</tr>
883+
<tr>
884+
<td> <a href="https://github.com/vigoux/notifier.nvim">notifier.nvim</a> </td>
885+
<td>
886+
887+
```lua
888+
notifier = false
889+
```
890+
891+
</td>
892+
</tr>
893+
<!-- notifier.nvim -->
894+
881895
<!-- nvim-cmp -->
882896
</tr>
883897
<tr>
@@ -1087,6 +1101,31 @@ ts_rainbow = true
10871101
</tr>
10881102
<!-- nvim-ts-rainbow -->
10891103

1104+
<!-- nvim-ufo -->
1105+
</tr>
1106+
<tr>
1107+
<td> <a href="https://github.com/kevinhwang91/nvim-ufo">nvim-ufo</a> </td>
1108+
<td>
1109+
1110+
```lua
1111+
ufo = false
1112+
```
1113+
1114+
</td>
1115+
</tr>
1116+
<!-- nvim-ufo -->
1117+
1118+
<!-- nvim-window-picker -->
1119+
</tr>
1120+
<tr>
1121+
<td> <a href="https://github.com/s1n7ax/nvim-window-picker">nvim-window-picker</a> </td>
1122+
<td>
1123+
1124+
```lua
1125+
window_picker = false
1126+
```
1127+
<!-- nvim-window-picker -->
1128+
10901129
<!-- octo.nvim -->
10911130
</tr>
10921131
<tr>
@@ -1263,7 +1302,10 @@ gitgutter = false
12631302
<td>
12641303

12651304
```lua
1266-
illuminate = false
1305+
illuminate = {
1306+
enabled = true,
1307+
lsp = false
1308+
}
12671309
```
12681310

12691311
</td>

doc/catppuccin.txt

+21-6
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ GET CATPPUCCIN COLORS *catppuccin-customize-highlights-get-catppuccin-colors*
131131
local mocha = require("catppuccin.palettes").get_palette "mocha"
132132
<
133133

134-
Will returns a table where the key is the name of the color and the value is
135-
its hex value corresponding to each flavour.
134+
Returns a table where the key is the name of the color and the value is its hex
135+
value corresponding to each flavour.
136136

137137

138138
OVERWRITING COLORS *catppuccin-customize-highlights-overwriting-colors*
@@ -297,8 +297,8 @@ Update your bufferline config to use the Catppuccin components:
297297
}
298298
<
299299

300-
Configurations are self-explanatory, see `:h bufferline-highlights` for
301-
detailed explanations:
300+
Configurations are self-explanatory, see |bufferline-highlights| for detailed
301+
explanations:
302302

303303
>lua
304304
local mocha = require("catppuccin.palettes").get_palette "mocha"
@@ -587,7 +587,7 @@ neo-tree.nvim>lua
587587
<
588588

589589
neogit>lua
590-
neogit = false
590+
neogit = true
591591
<
592592

593593
neotest>lua
@@ -598,6 +598,10 @@ noice.nvim>lua
598598
noice = false
599599
<
600600

601+
notifier.nvim>lua
602+
notifier = false
603+
<
604+
601605
nvim-cmp>lua
602606
cmp = true
603607
<
@@ -693,6 +697,14 @@ nvim-ts-rainbow>lua
693697
ts_rainbow = true
694698
<
695699

700+
nvim-ufo>lua
701+
ufo = false
702+
<
703+
704+
nvim-window-picker>lua
705+
window_picker = false
706+
<
707+
696708
octo.nvim>lua
697709
octo = false
698710
<
@@ -750,7 +762,10 @@ vim-gitgutter>lua
750762
<
751763

752764
vim-illuminate>lua
753-
illuminate = false
765+
illuminate = {
766+
enabled = true,
767+
lsp = false
768+
}
754769
<
755770

756771
vim-sandwich>lua

lua/catppuccin/groups/integrations/gitsigns.lua

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ function M.get()
1111
GitSignsChange = { fg = C.yellow }, -- diff mode: Changed line |diff.txt|
1212
GitSignsDelete = { fg = C.red }, -- diff mode: Deleted line |diff.txt|
1313

14+
GitSignsCurrentLineBlame = { fg = C.surface1 },
15+
1416
GitSignsAddPreview = O.transparent_background and { fg = U.darken(C.green, 0.72, C.base), bg = C.none }
1517
or { link = "DiffAdd" },
1618
GitSignsDeletePreview = O.transparent_background and { fg = U.darken(C.red, 0.72, C.base), bg = C.none }
@@ -40,6 +42,8 @@ function M.get()
4042
GitSignsChange = { fg = C.yellow }, -- diff mode: Changed line |diff.txt|
4143
GitSignsDelete = { fg = C.red }, -- diff mode: Deleted line |diff.txt|
4244

45+
GitSignsCurrentLineBlame = { fg = C.surface1 },
46+
4347
GitSignsAddPreview = O.transparent_background and { fg = C.green, bg = C.none } or { link = "DiffAdd" },
4448
GitSignsDeletePreview = O.transparent_background and { fg = C.red, bg = C.none } or { link = "DiffDelete" },
4549
}

lua/catppuccin/groups/integrations/illuminate.lua

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ function M.get()
44
return {
55
IlluminatedWordText = { bg = U.darken(C.surface1, 0.7, C.base) },
66
IlluminatedWordRead = { bg = U.darken(C.surface1, 0.7, C.base) },
7-
IlluminatedWordWrite = { bg = U.darken(C.surface1, 0.7, C.base) },
7+
IlluminatedWordWrite = {
8+
bg = U.darken(C.surface1, 0.7, C.base),
9+
style = O.integrations.illuminate.lsp and { "standout" } or {},
10+
},
811
}
912
end
1013

lua/catppuccin/groups/integrations/neogit.lua

+84-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,29 @@ local M = {}
22

33
function M.get()
44
return {
5-
NeogitBranch = { fg = C.pink },
6-
NeogitRemote = { fg = C.pink },
5+
NeogitBranch = {
6+
fg = C.peach,
7+
style = { "bold" },
8+
},
9+
NeogitRemote = {
10+
fg = C.green,
11+
style = { "bold" },
12+
},
13+
NeogitUnmergedInto = {
14+
link = "Function",
15+
},
16+
NeogitUnpulledFrom = {
17+
link = "Function",
18+
},
19+
NeogitObjectId = {
20+
link = "Comment",
21+
},
22+
NeogitStash = {
23+
link = "Comment",
24+
},
25+
NeogitRebaseDone = {
26+
link = "Comment",
27+
},
728
NeogitHunkHeader = {
829
bg = U.darken(C.blue, 0.095, C.base),
930
fg = U.darken(C.blue, 0.5, C.base),
@@ -36,6 +57,67 @@ function M.get()
3657
bg = U.darken(C.blue, 0.300, C.base),
3758
fg = U.lighten(C.blue, 0.800, C.text),
3859
},
60+
NeogitChangeModified = {
61+
fg = C.blue,
62+
style = { "bold" },
63+
},
64+
65+
NeogitChangeAdded = {
66+
fg = C.green,
67+
style = { "bold" },
68+
},
69+
NeogitChangeRenamed = {
70+
fg = C.mauve,
71+
style = { "bold" },
72+
},
73+
NeogitChangeUpdated = {
74+
fg = C.peach,
75+
style = { "bold" },
76+
},
77+
NeogitChangeCopied = {
78+
fg = C.pink,
79+
style = { "bold" },
80+
},
81+
NeogitChangeBothModified = {
82+
fg = C.yellow,
83+
style = { "bold" },
84+
},
85+
NeogitChangeNewFile = {
86+
fg = C.green,
87+
style = { "bold" },
88+
},
89+
NeogitUntrackedfiles = {
90+
fg = C.mauve,
91+
style = { "bold" },
92+
},
93+
NeogitUnstagedchanges = {
94+
fg = C.mauve,
95+
style = { "bold" },
96+
},
97+
NeogitUnmergedchanges = {
98+
fg = C.mauve,
99+
style = { "bold" },
100+
},
101+
NeogitUnpulledchanges = {
102+
fg = C.mauve,
103+
style = { "bold" },
104+
},
105+
NeogitRecentcommits = {
106+
fg = C.mauve,
107+
style = { "bold" },
108+
},
109+
NeogitStagedchanges = {
110+
fg = C.mauve,
111+
style = { "bold" },
112+
},
113+
NeogitStashes = {
114+
fg = C.mauve,
115+
style = { "bold" },
116+
},
117+
NeogitRebasing = {
118+
fg = C.mauve,
119+
style = { "bold" },
120+
},
39121
NeogitNotificationInfo = { fg = C.blue },
40122
NeogitNotificationWarning = { fg = C.yellow },
41123
NeogitNotificationError = { fg = C.red },
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
local M = {}
2+
3+
function M.get()
4+
return {
5+
NotifierIcon = { fg = C.mauve },
6+
NotifierContent = { fg = C.overlay2, blend = 0, style = { "italic" } },
7+
NotifierContentDim = { fg = C.overlay1, blend = 0, style = { "italic" } },
8+
}
9+
end
10+
11+
return M
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
local M = {}
22

33
function M.get()
4-
return O.transparent_background and { TreesitterContextBottom = { sp = C.dim, style = { "underline" } } } or {}
4+
return O.transparent_background and {
5+
TreesitterContextBottom = { sp = C.dim, style = { "underline" } },
6+
} or {
7+
TreesitterContextBottom = {
8+
sp = C.surface0,
9+
style = { "underline" },
10+
},
11+
TreesitterContextLineNumber = {
12+
fg = C.surface1,
13+
bg = C.mantle,
14+
},
15+
}
516
end
617

718
return M
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
local M = {}
2+
3+
M.get = function()
4+
return {
5+
UfoFoldedFg = { fg = C.lavender },
6+
}
7+
end
8+
9+
return M
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
local M = {}
2+
3+
function M.get()
4+
return {
5+
WindowPickerStatusLine = { fg = C.red, style = { "bold" } },
6+
WindowPickerStatusLineNC = { fg = C.red, style = { "bold" } },
7+
WindowPickerWinBar = { fg = C.red, style = { "bold" } },
8+
WindowPickerWinBarNC = { fg = C.red, style = { "bold" } },
9+
}
10+
end
11+
12+
return M

0 commit comments

Comments
 (0)