mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
Merge canary (#114)
* feat!: use new highlight api
* feat: support custom highlight blending
Example:
```
{
highlight_groups = {
StatusLine = { bg = 'love', blend = 10 }
}
}
```
* refactor: move config into separate file
* wip: update semantic tokens
* ci: add issue templates
Thanks to https://github.com/folke/lazy.nvim for the inspiration!
* ci: fix template formatting
* chore: update editorconfig
* fix: decouple more backgrounds from floats
* change `@tag.attribute` to iris
* add cursor highlights
Closes #121
* match link underline colour
* improve `dim_nc_background` behaviour
ref #123
* feat: expose each variant as individual theme
ref #98
* feat: update tokens
ref #107
* feat: distinguish between `CmpItemKind`'s
This commit is contained in:
parent
845a6ad544
commit
4eac261d57
10 changed files with 634 additions and 616 deletions
|
|
@ -1,5 +1,8 @@
|
|||
local options = require('rose-pine.config').options
|
||||
|
||||
local variants = {
|
||||
main = {
|
||||
nc = '#16141f',
|
||||
base = '#191724',
|
||||
surface = '#1f1d2e',
|
||||
overlay = '#26233a',
|
||||
|
|
@ -18,6 +21,7 @@ local variants = {
|
|||
none = 'NONE',
|
||||
},
|
||||
moon = {
|
||||
nc = '#1f1d30',
|
||||
base = '#232136',
|
||||
surface = '#2a273f',
|
||||
overlay = '#393552',
|
||||
|
|
@ -36,6 +40,7 @@ local variants = {
|
|||
none = 'NONE',
|
||||
},
|
||||
dawn = {
|
||||
nc = '#f8f0e7',
|
||||
base = '#faf4ed',
|
||||
surface = '#fffaf3',
|
||||
overlay = '#f2e9e1',
|
||||
|
|
@ -55,12 +60,15 @@ local variants = {
|
|||
},
|
||||
}
|
||||
|
||||
local palette = {}
|
||||
|
||||
if vim.o.background == 'light' then
|
||||
palette = variants.dawn
|
||||
else
|
||||
palette = variants[(vim.g.rose_pine_variant == 'moon' and 'moon') or 'main']
|
||||
if options.variant == 'main' then
|
||||
return variants.main
|
||||
end
|
||||
if options.variant == 'moon' then
|
||||
return variants.moon
|
||||
end
|
||||
if options.variant == 'dawn' then
|
||||
return variants.dawn
|
||||
end
|
||||
|
||||
return palette
|
||||
return vim.o.background == 'light' and variants.dawn
|
||||
or variants[options.dark_variant or 'main']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue