mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
chore: update config with shared headings
This commit is contained in:
parent
d625d91bb6
commit
4a43244c6a
2 changed files with 124 additions and 117 deletions
49
lua/rose-pine/config.lua
Normal file
49
lua/rose-pine/config.lua
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue