mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
* 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
22 lines
373 B
Lua
22 lines
373 B
Lua
local config = require('rose-pine.config')
|
|
local M = {}
|
|
|
|
---@param options Config|nil
|
|
function M.colorscheme(options)
|
|
if options then
|
|
config.extend(options)
|
|
end
|
|
|
|
if vim.g.colors_name then
|
|
vim.cmd('hi clear')
|
|
end
|
|
|
|
vim.opt.termguicolors = true
|
|
vim.g.colors_name = 'rose-pine'
|
|
|
|
require('rose-pine.theme')._load(config.options)
|
|
end
|
|
|
|
M.setup = config.setup
|
|
|
|
return M
|