mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
parent
7b3678a17c
commit
4b63d8d0e5
3 changed files with 16 additions and 8 deletions
|
|
@ -2,6 +2,7 @@ local palette = require('rose-pine.palette')
|
||||||
|
|
||||||
local config = {
|
local config = {
|
||||||
bold_vert_split = vim.g.rose_pine_bold_verical_split_line or false,
|
bold_vert_split = vim.g.rose_pine_bold_verical_split_line or false,
|
||||||
|
inactive_background = vim.g.rose_pine_inactive_background or false,
|
||||||
no_background = vim.g.rose_pine_disable_background or false,
|
no_background = vim.g.rose_pine_disable_background or false,
|
||||||
no_float_background = vim.g.rose_pine_disable_float_background or false,
|
no_float_background = vim.g.rose_pine_disable_float_background or false,
|
||||||
no_italics = vim.g.rose_pine_disable_italics or false,
|
no_italics = vim.g.rose_pine_disable_italics or false,
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,9 @@ local config = require('rose-pine.config')
|
||||||
local p = require('rose-pine.palette')
|
local p = require('rose-pine.palette')
|
||||||
|
|
||||||
-- TODO: Refactor `maybe` logic
|
-- TODO: Refactor `maybe` logic
|
||||||
local maybe_base = p.base
|
local maybe_inactive_background = p.none
|
||||||
local maybe_surface = p.surface
|
local maybe_background = p.base
|
||||||
|
local maybe_float_background = p.surface
|
||||||
local maybe_italic = 'italic'
|
local maybe_italic = 'italic'
|
||||||
local maybe_bold_vert_split = { fg = p.overlay }
|
local maybe_bold_vert_split = { fg = p.overlay }
|
||||||
|
|
||||||
|
|
@ -11,12 +12,16 @@ if config.bold_vert_split then
|
||||||
maybe_bold_vert_split = { fg = p.surface, bg = p.surface }
|
maybe_bold_vert_split = { fg = p.surface, bg = p.surface }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if config.inactive_background then
|
||||||
|
maybe_inactive_background = p.surface
|
||||||
|
end
|
||||||
|
|
||||||
if config.no_background then
|
if config.no_background then
|
||||||
maybe_base = p.none
|
maybe_background = p.none
|
||||||
end
|
end
|
||||||
|
|
||||||
if config.no_float_background then
|
if config.no_float_background then
|
||||||
maybe_surface = p.none
|
maybe_float_background = p.none
|
||||||
end
|
end
|
||||||
|
|
||||||
if config.no_italics then
|
if config.no_italics then
|
||||||
|
|
@ -52,9 +57,10 @@ local theme = {
|
||||||
ModeMsg = { fg = p.subtle },
|
ModeMsg = { fg = p.subtle },
|
||||||
MoreMsg = { fg = p.iris },
|
MoreMsg = { fg = p.iris },
|
||||||
NonText = { fg = p.inactive },
|
NonText = { fg = p.inactive },
|
||||||
Normal = { fg = p.text, bg = maybe_base },
|
Normal = { fg = p.text, bg = maybe_background },
|
||||||
NormalFloat = { fg = p.text, bg = maybe_surface },
|
NormalNC = { fg = p.text, bg = maybe_inactive_background },
|
||||||
Pmenu = { fg = p.subtle, bg = maybe_surface },
|
NormalFloat = { fg = p.text, bg = maybe_float_background },
|
||||||
|
Pmenu = { fg = p.subtle, bg = maybe_float_background },
|
||||||
PmenuSbar = { bg = p.overlay },
|
PmenuSbar = { bg = p.overlay },
|
||||||
PmenuSel = { fg = p.text, bg = p.overlay },
|
PmenuSel = { fg = p.text, bg = p.overlay },
|
||||||
PmenuThumb = { bg = p.inactive },
|
PmenuThumb = { bg = p.inactive },
|
||||||
|
|
@ -66,7 +72,7 @@ local theme = {
|
||||||
SpellCap = { style = 'undercurl', sp = p.subtle },
|
SpellCap = { style = 'undercurl', sp = p.subtle },
|
||||||
SpellLocal = { style = 'undercurl', sp = p.subtle },
|
SpellLocal = { style = 'undercurl', sp = p.subtle },
|
||||||
SpellRare = { style = 'undercurl', sp = p.subtle },
|
SpellRare = { style = 'undercurl', sp = p.subtle },
|
||||||
SignColumn = { fg = p.text, bg = maybe_base },
|
SignColumn = { fg = p.text, bg = maybe_background },
|
||||||
StatusLine = { fg = p.text, bg = p.surface },
|
StatusLine = { fg = p.text, bg = p.surface },
|
||||||
StatusLineNC = { fg = p.subtle, bg = p.surface },
|
StatusLineNC = { fg = p.subtle, bg = p.surface },
|
||||||
-- StatusLineTerm = {},
|
-- StatusLineTerm = {},
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,7 @@ use({
|
||||||
vim.g.rose_pine_variant = 'dawn'
|
vim.g.rose_pine_variant = 'dawn'
|
||||||
|
|
||||||
vim.g.rose_pine_bold_vertical_split_line = true
|
vim.g.rose_pine_bold_vertical_split_line = true
|
||||||
|
vim.g.rose_pine_inactive_background = false
|
||||||
vim.g.rose_pine_disable_background = false
|
vim.g.rose_pine_disable_background = false
|
||||||
vim.g.rose_pine_disable_float_background = false
|
vim.g.rose_pine_disable_float_background = false
|
||||||
vim.g.rose_pine_disable_italics = false
|
vim.g.rose_pine_disable_italics = false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue