mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
breaking: change italics setting, enabled by default
- changes `enable_italics` to `disable_italics`
This commit is contained in:
parent
fd6219436b
commit
72bc07055f
2 changed files with 12 additions and 7 deletions
|
|
@ -2,11 +2,16 @@ local p = require('rose-pine.palette')
|
||||||
|
|
||||||
local theme = {}
|
local theme = {}
|
||||||
local maybe_base = p.base
|
local maybe_base = p.base
|
||||||
|
local maybe_italic = 'italic'
|
||||||
|
|
||||||
if vim.g.rose_pine_disable_background then
|
if vim.g.rose_pine_disable_background then
|
||||||
maybe_base = p.none
|
maybe_base = p.none
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if vim.g.rose_pine_disable_italics then
|
||||||
|
maybe_italic = nil
|
||||||
|
end
|
||||||
|
|
||||||
theme.base = {
|
theme.base = {
|
||||||
ColorColumn = { bg = p.highlight_overlay },
|
ColorColumn = { bg = p.highlight_overlay },
|
||||||
-- Conceal = {},
|
-- Conceal = {},
|
||||||
|
|
@ -67,7 +72,7 @@ theme.base = {
|
||||||
Character = { fg = p.gold },
|
Character = { fg = p.gold },
|
||||||
Comment = {
|
Comment = {
|
||||||
fg = p.subtle,
|
fg = p.subtle,
|
||||||
style = vim.g.rose_pine_enable_italics and 'italic',
|
style = maybe_italic,
|
||||||
},
|
},
|
||||||
Conditional = { fg = p.pine },
|
Conditional = { fg = p.pine },
|
||||||
Constant = { fg = p.gold },
|
Constant = { fg = p.gold },
|
||||||
|
|
@ -173,7 +178,7 @@ theme.treesitter = {
|
||||||
-- TSCharacter = {},
|
-- TSCharacter = {},
|
||||||
TSComment = {
|
TSComment = {
|
||||||
fg = p.subtle,
|
fg = p.subtle,
|
||||||
style = vim.g.rose_pine_enable_italics and 'italic',
|
style = maybe_italic,
|
||||||
},
|
},
|
||||||
-- TSConditional = {},
|
-- TSConditional = {},
|
||||||
TSConstBuiltin = { fg = p.love },
|
TSConstBuiltin = { fg = p.love },
|
||||||
|
|
@ -201,12 +206,12 @@ theme.treesitter = {
|
||||||
TSOperator = { fg = p.pine },
|
TSOperator = { fg = p.pine },
|
||||||
TSParameter = {
|
TSParameter = {
|
||||||
fg = p.iris,
|
fg = p.iris,
|
||||||
style = vim.g.rose_pine_enable_italics and 'italic',
|
style = maybe_italic,
|
||||||
},
|
},
|
||||||
-- TSParameterReference = {},
|
-- TSParameterReference = {},
|
||||||
TSProperty = {
|
TSProperty = {
|
||||||
fg = p.iris,
|
fg = p.iris,
|
||||||
style = vim.g.rose_pine_enable_italics and 'italic',
|
style = maybe_italic,
|
||||||
},
|
},
|
||||||
TSPunctBracket = { fg = p.subtle },
|
TSPunctBracket = { fg = p.subtle },
|
||||||
TSPunctDelimiter = { fg = p.subtle },
|
TSPunctDelimiter = { fg = p.subtle },
|
||||||
|
|
@ -227,7 +232,7 @@ theme.treesitter = {
|
||||||
-- TSUnderline = {},
|
-- TSUnderline = {},
|
||||||
TSVariable = {
|
TSVariable = {
|
||||||
fg = p.text,
|
fg = p.text,
|
||||||
style = vim.g.rose_pine_enable_italics and 'italic',
|
style = maybe_italic,
|
||||||
},
|
},
|
||||||
TSVariableBuiltin = { fg = p.love },
|
TSVariableBuiltin = { fg = p.love },
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -73,8 +73,8 @@ require('lualine').setup({
|
||||||
-- @usage 'base' | 'moon' | 'dawn' | 'rose-pine[-moon][-dawn]'
|
-- @usage 'base' | 'moon' | 'dawn' | 'rose-pine[-moon][-dawn]'
|
||||||
vim.g.rose_pine_variant = 'base'
|
vim.g.rose_pine_variant = 'base'
|
||||||
|
|
||||||
-- Enable italics
|
-- Disable italics
|
||||||
vim.g.rose_pine_enable_italics = true
|
vim.g.rose_pine_disable_italics = false
|
||||||
|
|
||||||
-- Use terminal background
|
-- Use terminal background
|
||||||
-- Note: Set to true to fix any funky background colors
|
-- Note: Set to true to fix any funky background colors
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue