mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
docs: update options
This commit is contained in:
parent
34aeab3b8e
commit
6470d8c352
1 changed files with 22 additions and 35 deletions
57
readme.md
57
readme.md
|
|
@ -69,49 +69,36 @@ use({
|
||||||
|
|
||||||
## Options
|
## Options
|
||||||
|
|
||||||
> Options should be set before colorscheme
|
> Options should be set **before** colorscheme
|
||||||
|
|
||||||
### Interface
|
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
-- Set variant
|
-- Set theme variant
|
||||||
-- Defaults to 'dawn' if vim background is light
|
-- Matches terminal theme if unset
|
||||||
-- @usage 'base' | 'moon' | 'dawn' | 'rose-pine[-moon][-dawn]'
|
-- @usage 'main' | 'moon' | 'dawn'
|
||||||
vim.g.rose_pine_variant = 'base'
|
vim.g.rose_pine_variant = 'dawn'
|
||||||
|
|
||||||
-- Disable italics
|
vim.g.rose_pine_bold_vertical_split_line = true
|
||||||
|
vim.g.rose_pine_disable_background = false
|
||||||
vim.g.rose_pine_disable_italics = false
|
vim.g.rose_pine_disable_italics = false
|
||||||
|
|
||||||
-- Use terminal background
|
local p = require('rose-pine.palette')
|
||||||
vim.g.rose_pine_disable_background = false
|
|
||||||
|
|
||||||
-- Use bold vertical split line
|
|
||||||
vim.g.rose_pine_bold_vertical_split_line = true
|
|
||||||
```
|
|
||||||
|
|
||||||
### Custom colours
|
|
||||||
|
|
||||||
```lua
|
|
||||||
vim.g.rose_pine_colors = {
|
vim.g.rose_pine_colors = {
|
||||||
punctuation = '#fa8072',
|
punctuation = p.subtle,
|
||||||
comment = '#ffffff',
|
comment = p.subtle,
|
||||||
hint = '#9745be',
|
hint = p.iris,
|
||||||
info = '#78ccc5',
|
info = p.foam,
|
||||||
warn = '#f5c359',
|
warn = p.gold,
|
||||||
error = '#c75c6a',
|
error = p.love,
|
||||||
headings = {
|
headings = {
|
||||||
h1 = '#999999',
|
h1 = p.foam,
|
||||||
h2 = '#888888',
|
h2 = p.foam,
|
||||||
h3 = '#777777',
|
h3 = p.foam,
|
||||||
h4 = '#666666',
|
h4 = p.foam,
|
||||||
h5 = '#555555',
|
h5 = p.foam,
|
||||||
}
|
h6 = p.foam,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
```
|
|
||||||
|
|
||||||
Be sure to set the colorscheme _after_ options
|
|
||||||
|
|
||||||
```lua
|
|
||||||
-- Set colorscheme after options
|
-- Set colorscheme after options
|
||||||
vim.cmd('colorscheme rose-pine')
|
vim.cmd('colorscheme rose-pine')
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue