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', as = 'rose-pine' }) ``` ## Usage Enable `rose-pine` colorscheme ```lua vim.cmd('colorscheme rose-pine') ``` Enable [lualine](https://github.com/hoob3rt/lualine.nvim) plugin ```lua require('lualine').setup({ options = { theme = 'rose-pine' } }) ``` ## 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) - [Todo Comments](https://github.com/folke/todo-comments.nvim) - [Lualine](https://github.com/hoob3rt/lualine.nvim) ## 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 the colorscheme ```lua -- Set variant -- @usage 'base' | 'moon' | 'dawn' | 'rose-pine[-moon][-dawn]' vim.g.rose_pine_variant = 'base' -- Enable italics vim.g.rose_pine_enable_italics = true -- Use terminal background -- Note: Set to true to fix any funky background colors vim.g.rose_pine_disable_background = false -- 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 }) ```