chore: update config with shared headings

This commit is contained in:
mvllow 2021-12-03 09:36:08 -06:00
commit 4a43244c6a
2 changed files with 124 additions and 117 deletions

49
lua/rose-pine/config.lua Normal file
View file

@ -0,0 +1,49 @@
local palette = require('rose-pine.palette')
local config = {
bold_vert_split = vim.g.rose_pine_bold_verical_split_line or false,
no_background = vim.g.rose_pine_disable_background or false,
no_italics = vim.g.rose_pine_disable_italics or false,
colors = {
punctuation = palette.subtle,
comment = palette.subtle,
hint = palette.iris,
info = palette.foam,
warn = palette.gold,
error = palette.love,
-- TODO: Expose these once matched with syntax and cmp kind
-- variable = '',
-- class = '',
-- interface = '',
-- ['function'] = '',
-- method = '',
---@type string|table<string, string>
headings = {
h1 = palette.foam,
h2 = palette.foam,
h3 = palette.foam,
h4 = palette.foam,
h5 = palette.foam,
h6 = palette.foam,
},
},
}
local colors = vim.g.rose_pine_colors or {}
if type(colors.headings) == 'string' then
colors.headings = {
h1 = colors.headings,
h2 = colors.headings,
h3 = colors.headings,
h4 = colors.headings,
h5 = colors.headings,
h6 = colors.headings,
}
end
config.colors = vim.tbl_deep_extend('force', config.colors, colors)
return config