neovim-rose-pine/lua/rose-pine.lua

22 lines
373 B
Lua
Raw Permalink Normal View History

local config = require('rose-pine.config')
2022-06-16 00:43:46 -04:00
local M = {}
---@param options Config|nil
function M.colorscheme(options)
if options then
config.extend(options)
2022-06-16 00:43:46 -04:00
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)
2022-06-16 00:43:46 -04:00
end
M.setup = config.setup
2022-06-16 00:43:46 -04:00
return M