mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
parent
e2d473b2a1
commit
ecbd3ae709
1 changed files with 40 additions and 42 deletions
|
|
@ -41,14 +41,7 @@ local M = {}
|
|||
---@field h6 string
|
||||
|
||||
---@type RosePineConfig
|
||||
local config = {}
|
||||
|
||||
---@param opts RosePineConfig
|
||||
function M.setup(opts)
|
||||
opts = opts or {}
|
||||
vim.g.rose_pine_variant = opts.variant or 'main'
|
||||
|
||||
local default_config = {
|
||||
local config = {
|
||||
variant = 'main',
|
||||
bold_vert_split = false,
|
||||
dim_nc_background = false,
|
||||
|
|
@ -88,6 +81,11 @@ function M.setup(opts)
|
|||
},
|
||||
}
|
||||
|
||||
---@param opts RosePineConfig
|
||||
function M.setup(opts)
|
||||
opts = opts or {}
|
||||
vim.g.rose_pine_variant = opts.variant or 'main'
|
||||
|
||||
if opts.groups and type(opts.groups.headings) == 'string' then
|
||||
opts.groups.headings = {
|
||||
h1 = opts.groups.headings,
|
||||
|
|
@ -100,7 +98,7 @@ function M.setup(opts)
|
|||
end
|
||||
|
||||
config.user_variant = opts.variant or nil
|
||||
config = vim.tbl_deep_extend('force', default_config, opts)
|
||||
config = vim.tbl_deep_extend('force', config, opts)
|
||||
end
|
||||
|
||||
function M.colorscheme()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue