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
Install
Install via your preferred package manager
-- Packer
use('rose-pine/neovim')
Usage
Enable rose-pine colorscheme
vim.cmd('colorscheme rose-pine')
Optionally, enable lualine theme
require('lualine').setup({
options = {
theme = 'rose-pine'
}
})
Otherwise if you use galaxyline
-- This should be in your galaxyline configuration file
local colors = require("galaxyline.themes.colors")["rose-pine"]
IMPORTANT:
This requires NTBBloodbath's galaxyline fork in order to work.
You can see the list of available colors here.
Plugin Support
Gallery
Rosé Pine
Rosé Pine Moon
Rosé Pine Dawn
Options
Options should be set before colorscheme
-- Set variant
-- Defaults to 'dawn' if vim background is light
-- @usage 'base' | 'moon' | 'dawn' | 'rose-pine[-moon][-dawn]'
vim.g.rose_pine_variant = 'base'
-- Disable italics
vim.g.rose_pine_disable_italics = false
-- Use terminal background
vim.g.rose_pine_disable_background = false
-- Set colorscheme after options
vim.cmd('colorscheme rose-pine')
Functions
-- Toggle between the three variants
require('rose-pine.functions').toggle_variant()
-- Toggle between base and dawn
require('rose-pine.functions').toggle_variant({'base', 'dawn'})
-- Switch to specified variant
require('rose-pine.functions').select_variant('moon')
Keymaps
-- Toggle variant
vim.api.nvim_set_keymap('n', '<c-m>', [[<cmd>lua require('rose-pine.functions').toggle_variant()<cr>]], { noremap = true, silent = true })
-- Select each variant
vim.api.nvim_set_keymap('n', '<c-8>', [[<cmd>lua require('rose-pine.functions').select_variant('dawn')<cr>]], { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<c-9>', [[<cmd>lua require('rose-pine.functions').select_variant('moon')<cr>]], { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<c-0>', [[<cmd>lua require('rose-pine.functions').select_variant('base')<cr>]], { noremap = true, silent = true })


