diff --git a/lua/cosmic/config/examples/config.lua b/lua/cosmic/config/examples/config.lua index 0367adb..c41c7ed 100644 --- a/lua/cosmic/config/examples/config.lua +++ b/lua/cosmic/config/examples/config.lua @@ -21,6 +21,7 @@ config.treesitter = {} -- 'Catppuccino.nvim' -- 'gruvbox.nvim' -- 'nord.nvim' +-- 'rose-pine' config.theme = 'tokyonight.nvim' -- default -- lsp settings diff --git a/lua/cosmic/core/theme/colors.lua b/lua/cosmic/core/theme/colors.lua index e2d1b30..f53d04f 100644 --- a/lua/cosmic/core/theme/colors.lua +++ b/lua/cosmic/core/theme/colors.lua @@ -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 diff --git a/lua/cosmic/core/theme/integrated/rosepine.lua b/lua/cosmic/core/theme/integrated/rosepine.lua new file mode 100644 index 0000000..96c2b54 --- /dev/null +++ b/lua/cosmic/core/theme/integrated/rosepine.lua @@ -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 diff --git a/lua/cosmic/pluginsInit.lua b/lua/cosmic/pluginsInit.lua index 483a251..6a223e6 100644 --- a/lua/cosmic/pluginsInit.lua +++ b/lua/cosmic/pluginsInit.lua @@ -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() diff --git a/readme.md b/readme.md index a14a028..43a4698 100644 --- a/readme.md +++ b/readme.md @@ -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)