Skip to content

Commit

Permalink
feat: Add rose-pine colorscheme
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticalDevil committed Oct 29, 2023
1 parent 7e8c3ad commit e745312
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 4 deletions.
58 changes: 58 additions & 0 deletions lua/devil/configs/colorscheme/rose-pine.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
local rose_pine = require("rose-pine")

local opts = {
--- @usage 'auto'|'main'|'moon'|'dawn'
variant = "auto",
--- @usage 'main'|'moon'|'dawn'
dark_variant = "main",
bold_vert_split = false,
dim_nc_background = false,
disable_background = false,
disable_float_background = false,
disable_italics = false,

--- @usage string hex value or named color from rosepinetheme.com/palette
groups = {
background = "base",
background_nc = "_experimental_nc",
panel = "surface",
panel_nc = "base",
border = "highlight_med",
comment = "muted",
link = "iris",
punctuation = "subtle",

error = "love",
hint = "iris",
info = "foam",
warn = "gold",

headings = {
h1 = "iris",
h2 = "foam",
h3 = "rose",
h4 = "gold",
h5 = "pine",
h6 = "foam",
},
-- or set all headings at once
-- headings = 'subtle'
},

-- Change specific vim highlight groups
-- https://github.com/rose-pine/neovim/wiki/Recipes
highlight_groups = {
ColorColumn = { bg = "rose" },

-- Blend colours against the "base" background
CursorLine = { bg = "foam", blend = 10 },
StatusLine = { fg = "love", bg = "love", blend = 10 },

-- By default each group adds to the existing config.
-- If you only want to set what is written in this config exactly,
-- you can set the inherit option:
Search = { bg = "gold", inherit = false },
},
}

rose_pine.setup(opts)
13 changes: 9 additions & 4 deletions lua/devil/plugins/colorscheme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,15 @@ return {
config = function()
require("devil.configs.colorscheme.poimandres")
end,

-- optionally set the colorscheme within lazy config
init = function()
vim.cmd("colorscheme poimandres")
},
-- rose-pine
-- Soho vibes for Neovim
{
"rose-pine/neovim",
name = "rose-pine",
lazy = true,
config = function()
require("devil.configs.colorscheme.rose-pine")
end,
},
-- tokyonight.nvim
Expand Down

0 comments on commit e745312

Please sign in to comment.