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 ```lua -- Packer use('rose-pine/neovim') ``` ## Usage Enable `rose-pine` colorscheme ```lua vim.cmd('colorscheme rose-pine') ``` Optionally, enable [lualine](https://github.com/hoob3rt/lualine.nvim) theme ```lua require('lualine').setup({ options = { theme = 'rose-pine' } }) ``` Otherwise if you use [galaxyline](https://github.com/glepnir/galaxyline.nvim) ```lua -- This should be in your galaxyline configuration file local colors = require("galaxyline.themes.colors")["rose-pine"] ``` > **IMPORTANT**: > > 1. This requires [NTBBloodbath's galaxyline fork](https://github.com/NTBBloodbath/galaxyline.nvim) in order to work. > > 2. You can see the list of available colors [here](https://github.com/NTBBloodbath/galaxyline.nvim/blob/main/docs/themes.md#colors-standards). ## Plugin Support - [Treesitter](https://github.com/nvim-treesitter/nvim-treesitter) - [LSP diagnostics](https://neovim.io/doc/user/lsp.html) - [Barbar](https://github.com/romgrk/barbar.nvim) - [Gitsigns](https://github.com/lewis6991/gitsigns.nvim) - [Modes](https://github.com/mvllow/modes.nvim) - [NvimTree](https://github.com/kyazdani42/nvim-tree.lua) - [WhichKey](https://github.com/folke/which-key.nvim) - [Lualine](https://github.com/hoob3rt/lualine.nvim) - [Indent-Blankline.nvim](https://github.com/lukas-reineke/indent-blankline.nvim) - [Neogit](https://github.com/TimUntersberger/neogit) ## Gallery **Rosé Pine** ![Rosé Pine with Neovim](assets/rose-pine.png) **Rosé Pine Moon** ![Rosé Pine Moon with Neovim](assets/rose-pine-moon.png) **Rosé Pine Dawn** ![Rosé Pine Dawn with Neovim](assets/rose-pine-dawn.png) ## Options > Options should be set before colorscheme ```lua -- 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 -- Use bold vertical split line vim.g.rose_pine_bold_vertical_split_line = true -- Override theme groups vim.g.rose_pine_colors = { comment = '#ffffff', hint = '#9745be', info = '#78ccc5', warn = '#f5c359', error = '#c75c6a', } -- Set colorscheme after options vim.cmd('colorscheme rose-pine') ``` ## Functions ```lua -- 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 ```lua -- Toggle variant vim.api.nvim_set_keymap('n', '', [[lua require('rose-pine.functions').toggle_variant()]], { noremap = true, silent = true }) -- Select each variant vim.api.nvim_set_keymap('n', '', [[lua require('rose-pine.functions').select_variant('dawn')]], { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', '', [[lua require('rose-pine.functions').select_variant('moon')]], { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', '', [[lua require('rose-pine.functions').select_variant('base')]], { noremap = true, silent = true }) ```