neovim-rose-pine/lua/rose-pine.lua
2023-02-20 17:10:34 -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