mirror of
https://github.com/rose-pine/neovim.git
synced 2026-06-09 10:36:56 +02:00
grace-rose-pine -> rose-pine
This commit is contained in:
parent
f0ef333096
commit
42e4ed0625
19 changed files with 23 additions and 23 deletions
22
lua/rose-pine.lua
Normal file
22
lua/rose-pine.lua
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue