mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
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
|