breaking: change italics setting, enabled by default

- changes `enable_italics` to `disable_italics`
This commit is contained in:
mvllow 2021-08-20 11:15:03 -05:00
commit 72bc07055f
2 changed files with 12 additions and 7 deletions

View file

@ -2,11 +2,16 @@ local p = require('rose-pine.palette')
local theme = {}
local maybe_base = p.base
local maybe_italic = 'italic'
if vim.g.rose_pine_disable_background then
maybe_base = p.none
end
if vim.g.rose_pine_disable_italics then
maybe_italic = nil
end
theme.base = {
ColorColumn = { bg = p.highlight_overlay },
-- Conceal = {},
@ -67,7 +72,7 @@ theme.base = {
Character = { fg = p.gold },
Comment = {
fg = p.subtle,
style = vim.g.rose_pine_enable_italics and 'italic',
style = maybe_italic,
},
Conditional = { fg = p.pine },
Constant = { fg = p.gold },
@ -173,7 +178,7 @@ theme.treesitter = {
-- TSCharacter = {},
TSComment = {
fg = p.subtle,
style = vim.g.rose_pine_enable_italics and 'italic',
style = maybe_italic,
},
-- TSConditional = {},
TSConstBuiltin = { fg = p.love },
@ -201,12 +206,12 @@ theme.treesitter = {
TSOperator = { fg = p.pine },
TSParameter = {
fg = p.iris,
style = vim.g.rose_pine_enable_italics and 'italic',
style = maybe_italic,
},
-- TSParameterReference = {},
TSProperty = {
fg = p.iris,
style = vim.g.rose_pine_enable_italics and 'italic',
style = maybe_italic,
},
TSPunctBracket = { fg = p.subtle },
TSPunctDelimiter = { fg = p.subtle },
@ -227,7 +232,7 @@ theme.treesitter = {
-- TSUnderline = {},
TSVariable = {
fg = p.text,
style = vim.g.rose_pine_enable_italics and 'italic',
style = maybe_italic,
},
TSVariableBuiltin = { fg = p.love },
}

View file

@ -73,8 +73,8 @@ require('lualine').setup({
-- @usage 'base' | 'moon' | 'dawn' | 'rose-pine[-moon][-dawn]'
vim.g.rose_pine_variant = 'base'
-- Enable italics
vim.g.rose_pine_enable_italics = true
-- Disable italics
vim.g.rose_pine_disable_italics = false
-- Use terminal background
-- Note: Set to true to fix any funky background colors