This commit is contained in:
mvllow 2021-07-12 22:57:42 -05:00
commit 45a24037e4
4 changed files with 32 additions and 7 deletions

View file

@ -22,7 +22,9 @@ local toggle_variant = function(variants)
vim.g.rose_pine_variant_switch = index[vim.g.rose_pine_variant] or 0
end
vim.g.rose_pine_variant_switch = (vim.g.rose_pine_variant_switch % table.getn(options)) + 1
vim.g.rose_pine_variant_switch = (
vim.g.rose_pine_variant_switch % table.getn(options)
) + 1
select_variant(options[vim.g.rose_pine_variant_switch])
end

View file

@ -144,7 +144,10 @@ theme.loadTreesitter = function()
-- TSAttribute = {},
TSBoolean = { fg = p.rose },
-- TSCharacter = {},
TSComment = { fg = p.subtle, style = vim.g.rose_pine_enable_italics and 'italic' },
TSComment = {
fg = p.subtle,
style = vim.g.rose_pine_enable_italics and 'italic',
},
-- TSConditional = {},
TSConstBuiltin = { fg = p.love },
-- TSConstMacro = {},
@ -169,9 +172,15 @@ theme.loadTreesitter = function()
-- TSNone = {},
-- TSNumber = {},
TSOperator = { fg = p.pine },
TSParameter = { fg = p.iris, style = vim.g.rose_pine_enable_italics and 'italic' },
TSParameter = {
fg = p.iris,
style = vim.g.rose_pine_enable_italics and 'italic',
},
-- TSParameterReference = {},
TSProperty = { fg = p.iris, style = vim.g.rose_pine_enable_italics and 'italic' },
TSProperty = {
fg = p.iris,
style = vim.g.rose_pine_enable_italics and 'italic',
},
TSPunctBracket = { fg = p.subtle },
TSPunctDelimiter = { fg = p.subtle },
TSPunctSpecial = { fg = p.subtle },
@ -189,7 +198,10 @@ theme.loadTreesitter = function()
-- TSTypeBuiltin = {},
TSURI = { fg = p.gold, style = 'underline' },
-- TSUnderline = {},
TSVariable = { fg = p.text, style = vim.g.rose_pine_enable_italics and 'italic' },
TSVariable = {
fg = p.text,
style = vim.g.rose_pine_enable_italics and 'italic',
},
TSVariableBuiltin = { fg = p.love },
}

View file

@ -7,7 +7,16 @@ util.highlight = function(group, color)
local bg = color.bg and 'guibg=' .. color.bg or 'guibg=NONE'
local sp = color.sp and 'guisp=' .. color.sp or ''
local hl = 'highlight ' .. group .. ' ' .. style .. ' ' .. fg .. ' ' .. bg .. ' ' .. sp
local hl = 'highlight '
.. group
.. ' '
.. style
.. ' '
.. fg
.. ' '
.. bg
.. ' '
.. sp
vim.cmd(hl)
if color.link then

View file

@ -1 +1,3 @@
quote_style = 'AutoPreferSingle'
column_width = 80
indent_type = "Tabs"
quote_style = "AutoPreferSingle"