accept full name theme name as variant

This commit is contained in:
mvllow 2021-07-18 15:34:03 -05:00
commit 8463a5ec4d
2 changed files with 10 additions and 3 deletions

View file

@ -17,7 +17,10 @@ local palette = {
none = 'NONE', none = 'NONE',
} }
if vim.g.rose_pine_variant == 'dawn' then if
vim.g.rose_pine_variant == 'dawn'
or vim.g.rose_pine_variant == 'rose-pine-dawn'
then
palette = { palette = {
base = '#faf4ed', base = '#faf4ed',
surface = '#fffaf3', surface = '#fffaf3',
@ -35,7 +38,10 @@ if vim.g.rose_pine_variant == 'dawn' then
highlight_inactive = '#f2ede9', highlight_inactive = '#f2ede9',
highlight_overlay = '#e4dfde', highlight_overlay = '#e4dfde',
} }
elseif vim.g.rose_pine_variant == 'moon' then elseif
vim.g.rose_pine_variant == 'moon'
or vim.g.rose_pine_variant == 'rose-pine-moon'
then
palette = { palette = {
base = '#232136', base = '#232136',
surface = '#2a273f', surface = '#2a273f',

View file

@ -49,7 +49,8 @@ colorscheme rose-pine
## Options ## Options
```lua ```lua
-- Can be 'base', 'moon', 'dawn' -- Set variant
-- @usage 'base' | 'moon' | 'dawn' | 'rose-pine[-moon][-dawn]'
vim.g.rose_pine_variant = 'base' vim.g.rose_pine_variant = 'base'
-- Enable italics -- Enable italics