feat(themes): add rose pine
This commit is contained in:
parent
c0968ef35e
commit
a6858e9950
5 changed files with 39 additions and 1 deletions
|
@ -21,6 +21,7 @@ config.treesitter = {}
|
||||||
-- 'Catppuccino.nvim'
|
-- 'Catppuccino.nvim'
|
||||||
-- 'gruvbox.nvim'
|
-- 'gruvbox.nvim'
|
||||||
-- 'nord.nvim'
|
-- 'nord.nvim'
|
||||||
|
-- 'rose-pine'
|
||||||
config.theme = 'tokyonight.nvim' -- default
|
config.theme = 'tokyonight.nvim' -- default
|
||||||
|
|
||||||
-- lsp settings
|
-- lsp settings
|
||||||
|
|
|
@ -7,6 +7,8 @@ elseif config.theme == 'Catppuccino.nvim' then
|
||||||
colors = require('cosmic.core.theme.integrated.catppuccin')
|
colors = require('cosmic.core.theme.integrated.catppuccin')
|
||||||
elseif config.theme == 'gruvbox.nvim' then
|
elseif config.theme == 'gruvbox.nvim' then
|
||||||
colors = require('cosmic.core.theme.integrated.gruvbox')
|
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
|
elseif config.theme == 'nord.nvim' then
|
||||||
colors = require('cosmic.core.theme.integrated.nord')
|
colors = require('cosmic.core.theme.integrated.nord')
|
||||||
end
|
end
|
||||||
|
|
23
lua/cosmic/core/theme/integrated/rosepine.lua
Normal file
23
lua/cosmic/core/theme/integrated/rosepine.lua
Normal 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
|
|
@ -65,11 +65,22 @@ return packer.startup(function()
|
||||||
'ellisonleao/gruvbox.nvim',
|
'ellisonleao/gruvbox.nvim',
|
||||||
requires = { 'rktjmp/lush.nvim' },
|
requires = { 'rktjmp/lush.nvim' },
|
||||||
config = function()
|
config = function()
|
||||||
vim.cmd([[colorscheme gruvbox]])
|
vim.o.background = 'dark'
|
||||||
|
vim.cmd('colorscheme gruvbox')
|
||||||
end,
|
end,
|
||||||
disable = config.theme ~= 'gruvbox.nvim',
|
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({
|
use({
|
||||||
'rcarriga/nvim-notify',
|
'rcarriga/nvim-notify',
|
||||||
config = function()
|
config = function()
|
||||||
|
|
|
@ -76,6 +76,7 @@ CosmicNvim comes with first-class support for the following themes:
|
||||||
|
|
||||||
- [Catppuccino](https://github.com/Pocco81/Catppuccino.nvim)
|
- [Catppuccino](https://github.com/Pocco81/Catppuccino.nvim)
|
||||||
- [Gruvbox](https://github.com/ellisonleao/gruvbox.nvim)
|
- [Gruvbox](https://github.com/ellisonleao/gruvbox.nvim)
|
||||||
|
- [Rose-pine](https://github.com/rose-pine/neovim)
|
||||||
- [Nord](https://github.com/shaunsingh/nord.nvim)
|
- [Nord](https://github.com/shaunsingh/nord.nvim)
|
||||||
- [Tokyonight](https://github.com/folke/tokyonight.nvim)
|
- [Tokyonight](https://github.com/folke/tokyonight.nvim)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue