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