feat: add new treesitter highlights (#217)

* feat: add WinBar and WinBarNC

* feat: add new treesitter highlight groups

* perf: parse necessary values upfront

This commit no longer parses each highlight group, but rather user
config values only.

* fix: titles are no longer dynamically coloured

Closes #216 #218 #219
This commit is contained in:
not 2024-01-26 14:12:54 -06:00 committed by GitHub
commit bf00df18af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 292 additions and 157 deletions

View file

@ -57,6 +57,14 @@ require('rose-pine').setup({
dim_inactive_windows = false,
extend_background_behind_borders = true,
enable = {
terminal = true,
-- Improve compatibility for previous versions of Neovim
legacy_highlights = true,
-- Handle deprecated options automatically
migrations = true,
},
styles = {
bold = true,
italic = true,
@ -71,6 +79,8 @@ require('rose-pine').setup({
error = "love",
hint = "iris",
info = "foam",
note = "pine",
todo = "rose",
warn = "gold",
git_add = "foam",
@ -84,16 +94,12 @@ require('rose-pine').setup({
git_text = "rose",
git_untracked = "subtle",
headings = {
h1 = "iris",
h2 = "foam",
h3 = "rose",
h4 = "gold",
h5 = "pine",
h6 = "foam",
},
-- Alternatively, set all headings at once.
-- headings = "subtle",
h1 = "iris",
h2 = "foam",
h3 = "rose",
h4 = "gold",
h5 = "pine",
h6 = "foam",
},
highlight_groups = {
@ -125,6 +131,6 @@ vim.cmd('colorscheme rose-pine')
## Contributing
We welcome and appreciate contributions of any kind. Create an issue or start a discussion for any proposed changes. Pull requests are encouraged for supporting additional plugins.
We welcome and appreciate contributions of any kind. Create an issue or start a discussion for any proposed changes. Pull requests are encouraged for supporting additional plugins or [treesitter improvements](https://github.com/nvim-treesitter/nvim-treesitter/blob/master/CONTRIBUTING.md#highlights).
Feel free to update the [wiki](https://github.com/rose-pine/neovim/wiki/) with any [recipes](https://github.com/rose-pine/neovim/wiki/Recipes).