feat(themes): add rose pine

This commit is contained in:
Matt Leong 2021-11-12 11:27:10 -08:00
parent c0968ef35e
commit a6858e9950
5 changed files with 39 additions and 1 deletions

View file

@ -21,6 +21,7 @@ config.treesitter = {}
-- 'Catppuccino.nvim'
-- 'gruvbox.nvim'
-- 'nord.nvim'
-- 'rose-pine'
config.theme = 'tokyonight.nvim' -- default
-- lsp settings

View file

@ -7,6 +7,8 @@ elseif config.theme == 'Catppuccino.nvim' then
colors = require('cosmic.core.theme.integrated.catppuccin')
elseif config.theme == 'gruvbox.nvim' then
colors = require('cosmic.core.theme.integrated.gruvbox')
elseif config.theme == 'rose-pine' then
colors = require('cosmic.core.theme.integrated.rosepine')
elseif config.theme == 'nord.nvim' then
colors = require('cosmic.core.theme.integrated.nord')
end

View file

@ -0,0 +1,23 @@
local theme = require('rose-pine.palette')
local colors = {
white = theme.text,
bg = theme.surface,
bg_highlight = theme.surface,
bg_dark = theme.base,
normal = theme.pine,
insert = theme.foam,
command = theme.gold,
visual = theme.iris,
replace = theme.rose,
diffAdd = theme.foam,
diffModified = theme.pine,
diffDeleted = theme.rose,
trace = theme.rose,
hint = theme.pine,
info = theme.foam,
error = theme.love,
warn = theme.rose,
floatBorder = theme.rose,
selection_caret = theme.iris,
}
return colors

View file

@ -65,11 +65,22 @@ return packer.startup(function()
'ellisonleao/gruvbox.nvim',
requires = { 'rktjmp/lush.nvim' },
config = function()
vim.cmd([[colorscheme gruvbox]])
vim.o.background = 'dark'
vim.cmd('colorscheme gruvbox')
end,
disable = config.theme ~= 'gruvbox.nvim',
})
use({
'rose-pine/neovim',
as = 'rose-pine',
config = function()
vim.g.rose_pine_variant = 'moon'
vim.cmd('colorscheme rose-pine')
end,
disable = config.theme ~= 'rose-pine',
})
use({
'rcarriga/nvim-notify',
config = function()

View file

@ -76,6 +76,7 @@ CosmicNvim comes with first-class support for the following themes:
- [Catppuccino](https://github.com/Pocco81/Catppuccino.nvim)
- [Gruvbox](https://github.com/ellisonleao/gruvbox.nvim)
- [Rose-pine](https://github.com/rose-pine/neovim)
- [Nord](https://github.com/shaunsingh/nord.nvim)
- [Tokyonight](https://github.com/folke/tokyonight.nvim)