mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
Soho vibes for Neovim
- Lua 100%
| colors | ||
| lua | ||
| .stylua.toml | ||
| readme.md | ||
Rosé Pine for Neovim
All natural pine, faux fur and a bit of soho vibes for the classy minimalist
Usage
use({
'rose-pine/neovim',
as = 'rose-pine',
config = function()
-- Options (see available options below)
vim.g.rose_pine_variant = 'main'
-- Load colorscheme after options
vim.cmd('colorscheme rose-pine')
end
})
Plugins
PR's are more than welcome if your favourite plugin is missing
- Treesitter
- Diagnostics
- Barbar
- Gitsigns
- Modes
- NvimTree
- WhichKey
- Indent-Blankline.nvim
- Neogit
- Lualine
require('lualine').setup({ options = { theme = 'rose-pine' } }) - Galaxyline fork
This fork by NTBBloodbath allows custom colors
-- Set colors in your galaxyline config local colors = require("galaxyline.themes.colors")["rose-pine"]
Gallery
Rosé Pine
Rosé Pine Moon
Rosé Pine Dawn
Options
Options should be set before colorscheme
-- Set theme variant
-- Matches terminal theme if unset
-- @usage 'main' | 'moon' | 'dawn'
vim.g.rose_pine_variant = 'dawn'
vim.g.rose_pine_bold_vertical_split_line = true
vim.g.rose_pine_disable_background = false
vim.g.rose_pine_disable_float_background = false
vim.g.rose_pine_disable_italics = false
local p = require('rose-pine.palette')
vim.g.rose_pine_colors = {
punctuation = p.subtle,
comment = p.subtle,
hint = p.iris,
info = p.foam,
warn = p.gold,
error = p.love,
headings = {
h1 = p.foam,
h2 = p.foam,
h3 = p.foam,
h4 = p.foam,
h5 = p.foam,
h6 = p.foam,
},
}
-- Set colorscheme after options
vim.cmd('colorscheme rose-pine')
Functions
-- Toggle between all variants
require('rose-pine').toggle()
-- Toggle between some variants
require('rose-pine').toggle({'main', 'dawn'})
-- Set specific variant
require('rose-pine').set('moon')
Keymaps
These are only suggestions; no keymaps are set by the theme
-- Toggle variants
vim.api.nvim_set_keymap('n', '<c-m>', [[<cmd>lua require('rose-pine').toggle()<cr>]], { noremap = true, silent = true })
-- Set variant
vim.api.nvim_set_keymap('n', '<c-0>', [[<cmd>lua require('rose-pine').set('main')<cr>]], { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<c-9>', [[<cmd>lua require('rose-pine').set('moon')<cr>]], { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<c-8>', [[<cmd>lua require('rose-pine').set('dawn')<cr>]], { noremap = true, silent = true })
Contributing
We welcome and appreciate any help in creating a lovely experience for all.


