neovim-rose-pine/lua/rose-pine.lua
not 16a4739664 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
2023-02-22 13:25:36 -06:00

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