mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
chore: format
This commit is contained in:
parent
46d0c44be5
commit
99bd273064
1 changed files with 94 additions and 94 deletions
|
|
@ -1,11 +1,11 @@
|
|||
local config = require("rose-pine.config")
|
||||
local p = require("rose-pine.palette")
|
||||
local config = require('rose-pine.config')
|
||||
local p = require('rose-pine.palette')
|
||||
|
||||
-- TODO: Refactor `maybe` logic
|
||||
local maybe_inactive_background = p.none
|
||||
local maybe_background = p.base
|
||||
local maybe_float_background = p.surface
|
||||
local maybe_italic = "italic"
|
||||
local maybe_italic = 'italic'
|
||||
local maybe_bold_vert_split = { fg = p.overlay }
|
||||
|
||||
if config.bold_vert_split then
|
||||
|
|
@ -42,12 +42,12 @@ local theme = {
|
|||
DiffChange = { fg = p.rose },
|
||||
DiffDelete = { fg = p.love },
|
||||
DiffText = { fg = p.text },
|
||||
diffAdded = { link = "DiffAdd" },
|
||||
diffChanged = { link = "DiffChange" },
|
||||
diffRemoved = { link = "DiffDelete" },
|
||||
diffAdded = { link = 'DiffAdd' },
|
||||
diffChanged = { link = 'DiffChange' },
|
||||
diffRemoved = { link = 'DiffDelete' },
|
||||
Directory = { fg = p.foam, bg = p.none },
|
||||
-- EndOfBuffer = {},
|
||||
ErrorMsg = { fg = p.love, style = "bold" },
|
||||
ErrorMsg = { fg = p.love, style = 'bold' },
|
||||
FloatBorder = { fg = p.subtle },
|
||||
FoldColumn = {},
|
||||
Folded = { fg = p.text, bg = p.surface },
|
||||
|
|
@ -68,10 +68,10 @@ local theme = {
|
|||
-- QuickFixLine = {},
|
||||
Search = { fg = p.iris, bg = p.highlight_high },
|
||||
SpecialKey = { fg = p.foam },
|
||||
SpellBad = { style = "undercurl", sp = p.love },
|
||||
SpellCap = { style = "undercurl", sp = p.subtle },
|
||||
SpellLocal = { style = "undercurl", sp = p.subtle },
|
||||
SpellRare = { style = "undercurl", sp = p.subtle },
|
||||
SpellBad = { style = 'undercurl', sp = p.love },
|
||||
SpellCap = { style = 'undercurl', sp = p.subtle },
|
||||
SpellLocal = { style = 'undercurl', sp = p.subtle },
|
||||
SpellRare = { style = 'undercurl', sp = p.subtle },
|
||||
SignColumn = { fg = p.text, bg = maybe_background },
|
||||
StatusLine = { fg = p.text, bg = p.surface },
|
||||
StatusLineNC = { fg = p.subtle, bg = p.surface },
|
||||
|
|
@ -125,49 +125,49 @@ local theme = {
|
|||
Todo = { fg = p.iris },
|
||||
Type = { fg = p.foam },
|
||||
Typedef = { fg = p.foam },
|
||||
Underlined = { fg = p.foam, style = "underline" },
|
||||
Underlined = { fg = p.foam, style = 'underline' },
|
||||
|
||||
htmlArg = { fg = p.iris },
|
||||
htmlBold = { fg = p.text, style = "bold" },
|
||||
htmlBold = { fg = p.text, style = 'bold' },
|
||||
htmlEndTag = { fg = p.subtle },
|
||||
htmlH1 = { fg = config.colors.headings.h1, style = "bold" },
|
||||
htmlH2 = { fg = config.colors.headings.h2, style = "bold" },
|
||||
htmlH3 = { fg = config.colors.headings.h3, style = "bold" },
|
||||
htmlH4 = { fg = config.colors.headings.h4, style = "bold" },
|
||||
htmlH5 = { fg = config.colors.headings.h5, style = "bold" },
|
||||
htmlH1 = { fg = config.colors.headings.h1, style = 'bold' },
|
||||
htmlH2 = { fg = config.colors.headings.h2, style = 'bold' },
|
||||
htmlH3 = { fg = config.colors.headings.h3, style = 'bold' },
|
||||
htmlH4 = { fg = config.colors.headings.h4, style = 'bold' },
|
||||
htmlH5 = { fg = config.colors.headings.h5, style = 'bold' },
|
||||
htmlItalic = { fg = p.text, style = maybe_italic },
|
||||
htmlLink = { fg = p.text },
|
||||
htmlTag = { fg = p.subtle },
|
||||
htmlTagN = { fg = p.text },
|
||||
htmlTagName = { fg = p.foam },
|
||||
|
||||
markdownH1 = { fg = config.colors.headings.h1, style = "bold" },
|
||||
markdownH1 = { fg = config.colors.headings.h1, style = 'bold' },
|
||||
markdownH1Delimiter = { fg = config.colors.headings.h1 },
|
||||
markdownH2 = { fg = config.colors.headings.h2, style = "bold" },
|
||||
markdownH2 = { fg = config.colors.headings.h2, style = 'bold' },
|
||||
markdownH2Delimiter = { fg = config.colors.headings.h2 },
|
||||
markdownH3 = { fg = config.colors.headings.h3, style = "bold" },
|
||||
markdownH3 = { fg = config.colors.headings.h3, style = 'bold' },
|
||||
markdownH3Delimiter = { fg = config.colors.headings.h3 },
|
||||
markdownH4 = { fg = config.colors.headings.h4, style = "bold" },
|
||||
markdownH4 = { fg = config.colors.headings.h4, style = 'bold' },
|
||||
markdownH4Delimiter = { fg = config.colors.headings.h4 },
|
||||
markdownH5 = { fg = config.colors.headings.h5, style = "bold" },
|
||||
markdownH5 = { fg = config.colors.headings.h5, style = 'bold' },
|
||||
markdownH5Delimiter = { fg = config.colors.headings.h5 },
|
||||
markdownH6 = { fg = config.colors.headings.h6, style = "bold" },
|
||||
markdownH6 = { fg = config.colors.headings.h6, style = 'bold' },
|
||||
markdownH6Delimiter = { fg = config.colors.headings.h6 },
|
||||
markdownDelimiter = { fg = p.subtle },
|
||||
markdownLinkText = { fg = p.iris, style = "underline" },
|
||||
markdownUrl = { fg = p.iris, style = "underline" },
|
||||
markdownLinkText = { fg = p.iris, style = 'underline' },
|
||||
markdownUrl = { fg = p.iris, style = 'underline' },
|
||||
mkdCode = { fg = p.foam, style = maybe_italic },
|
||||
mkdCodeDelimiter = { fg = p.rose },
|
||||
mkdCodeEnd = { fg = p.foam },
|
||||
mkdCodeStart = { fg = p.foam },
|
||||
mkdFootnotes = { fg = p.foam },
|
||||
mkdID = { fg = p.foam, style = "underline" },
|
||||
mkdInlineURL = { fg = p.foam, style = "underline" },
|
||||
mkdLink = { fg = p.rose, style = "bold" },
|
||||
mkdLinkDef = { fg = p.rose, style = "bold" },
|
||||
mkdID = { fg = p.foam, style = 'underline' },
|
||||
mkdInlineURL = { fg = p.foam, style = 'underline' },
|
||||
mkdLink = { fg = p.rose, style = 'bold' },
|
||||
mkdLinkDef = { fg = p.rose, style = 'bold' },
|
||||
mkdListItemLine = { fg = p.text },
|
||||
mkdRule = { fg = p.subtle },
|
||||
mkdURL = { fg = p.foam, style = "underline" },
|
||||
mkdURL = { fg = p.foam, style = 'underline' },
|
||||
|
||||
-- Fix background mismatch if user sets custom float background
|
||||
-- In LSP hover float: (paramater)
|
||||
|
|
@ -176,9 +176,9 @@ local theme = {
|
|||
|
||||
DiagnosticHint = { fg = config.colors.hint },
|
||||
DiagnosticInfo = { fg = config.colors.info },
|
||||
DiagnosticInformation = { link = "DiagnosticInfo" },
|
||||
DiagnosticInformation = { link = 'DiagnosticInfo' },
|
||||
DiagnosticWarn = { fg = config.colors.warn },
|
||||
DiagnosticWarning = { link = "DiagnosticWarn" },
|
||||
DiagnosticWarning = { link = 'DiagnosticWarn' },
|
||||
DiagnosticError = { fg = config.colors.error },
|
||||
DiagnosticDefaultHint = { fg = config.colors.hint },
|
||||
DiagnosticDefaultInfo = { fg = config.colors.info },
|
||||
|
|
@ -192,11 +192,11 @@ local theme = {
|
|||
DiagnosticSignInfo = { fg = config.colors.info },
|
||||
DiagnosticSignWarn = { fg = config.colors.warn },
|
||||
DiagnosticSignError = { fg = config.colors.error },
|
||||
DiagnosticUnderlineHint = { style = "undercurl", sp = config.colors.hint },
|
||||
DiagnosticUnderlineInfo = { style = "undercurl", sp = config.colors.info },
|
||||
DiagnosticUnderlineWarn = { style = "undercurl", sp = config.colors.warn },
|
||||
DiagnosticUnderlineHint = { style = 'undercurl', sp = config.colors.hint },
|
||||
DiagnosticUnderlineInfo = { style = 'undercurl', sp = config.colors.info },
|
||||
DiagnosticUnderlineWarn = { style = 'undercurl', sp = config.colors.warn },
|
||||
DiagnosticUnderlineError = {
|
||||
style = "undercurl",
|
||||
style = 'undercurl',
|
||||
sp = config.colors.error,
|
||||
},
|
||||
DiagnosticVirtualTextHint = { fg = config.colors.hint },
|
||||
|
|
@ -209,35 +209,35 @@ local theme = {
|
|||
LspReferenceWrite = { fg = p.rose, bg = p.highlight_med },
|
||||
|
||||
-- TODO: Deprecate in favour of 0.6.0 groups
|
||||
LspDiagnosticsSignWarning = { link = "DiagnosticSignWarn" },
|
||||
LspDiagnosticsDefaultWarning = { link = "DiagnosticDefaultWarn" },
|
||||
LspDiagnosticsFloatingWarning = { link = "DiagnosticFloatingWarn" },
|
||||
LspDiagnosticsVirtualTextWarning = { link = "DiagnosticVirtualTextWarn" },
|
||||
LspDiagnosticsUnderlineWarning = { link = "DiagnosticUnderlineWarn" },
|
||||
LspDiagnosticsSignHint = { link = "DiagnosticSignHint" },
|
||||
LspDiagnosticsDefaultHint = { link = "DiagnosticDefaultHint" },
|
||||
LspDiagnosticsVirtualTextHint = { link = "DiagnosticFloatingHint" },
|
||||
LspDiagnosticsFloatingHint = { link = "DiagnosticVirtualTextHint" },
|
||||
LspDiagnosticsUnderlineHint = { link = "DiagnosticUnderlineHint" },
|
||||
LspDiagnosticsSignError = { link = "DiagnosticSignError" },
|
||||
LspDiagnosticsDefaultError = { link = "DiagnosticDefaultError" },
|
||||
LspDiagnosticsFloatingError = { link = "DiagnosticFloatingError" },
|
||||
LspDiagnosticsVirtualTextError = { link = "DiagnosticVirtualTextError" },
|
||||
LspDiagnosticsUnderlineError = { link = "DiagnosticUnderlineError" },
|
||||
LspDiagnosticsSignInformation = { link = "DiagnosticSignInfo" },
|
||||
LspDiagnosticsDefaultInformation = { link = "DiagnosticDefaultInfo" },
|
||||
LspDiagnosticsFloatingInformation = { link = "DiagnosticFloatingInfo" },
|
||||
LspDiagnosticsSignWarning = { link = 'DiagnosticSignWarn' },
|
||||
LspDiagnosticsDefaultWarning = { link = 'DiagnosticDefaultWarn' },
|
||||
LspDiagnosticsFloatingWarning = { link = 'DiagnosticFloatingWarn' },
|
||||
LspDiagnosticsVirtualTextWarning = { link = 'DiagnosticVirtualTextWarn' },
|
||||
LspDiagnosticsUnderlineWarning = { link = 'DiagnosticUnderlineWarn' },
|
||||
LspDiagnosticsSignHint = { link = 'DiagnosticSignHint' },
|
||||
LspDiagnosticsDefaultHint = { link = 'DiagnosticDefaultHint' },
|
||||
LspDiagnosticsVirtualTextHint = { link = 'DiagnosticFloatingHint' },
|
||||
LspDiagnosticsFloatingHint = { link = 'DiagnosticVirtualTextHint' },
|
||||
LspDiagnosticsUnderlineHint = { link = 'DiagnosticUnderlineHint' },
|
||||
LspDiagnosticsSignError = { link = 'DiagnosticSignError' },
|
||||
LspDiagnosticsDefaultError = { link = 'DiagnosticDefaultError' },
|
||||
LspDiagnosticsFloatingError = { link = 'DiagnosticFloatingError' },
|
||||
LspDiagnosticsVirtualTextError = { link = 'DiagnosticVirtualTextError' },
|
||||
LspDiagnosticsUnderlineError = { link = 'DiagnosticUnderlineError' },
|
||||
LspDiagnosticsSignInformation = { link = 'DiagnosticSignInfo' },
|
||||
LspDiagnosticsDefaultInformation = { link = 'DiagnosticDefaultInfo' },
|
||||
LspDiagnosticsFloatingInformation = { link = 'DiagnosticFloatingInfo' },
|
||||
LspDiagnosticsVirtualTextInformation = {
|
||||
link = "DiagnosticVirtualTextInfo",
|
||||
link = 'DiagnosticVirtualTextInfo',
|
||||
},
|
||||
LspDiagnosticsUnderlineInformation = { link = "DiagnosticUnderlineInfo" },
|
||||
LspDiagnosticsUnderlineInformation = { link = 'DiagnosticUnderlineInfo' },
|
||||
|
||||
-- RedrawDebugNormal
|
||||
RedrawDebugClear = { fg = "#ffffff", bg = p.gold },
|
||||
RedrawDebugComposed = { fg = "#ffffff", bg = p.pine },
|
||||
RedrawDebugRecompose = { fg = "#ffffff", bg = p.love },
|
||||
RedrawDebugClear = { fg = '#ffffff', bg = p.gold },
|
||||
RedrawDebugComposed = { fg = '#ffffff', bg = p.pine },
|
||||
RedrawDebugRecompose = { fg = '#ffffff', bg = p.love },
|
||||
|
||||
NvimInternalError = { fg = "#ffffff", bg = p.love },
|
||||
NvimInternalError = { fg = '#ffffff', bg = p.love },
|
||||
|
||||
-- TSAnnotation = {},
|
||||
-- TSAttribute = {},
|
||||
|
|
@ -292,7 +292,7 @@ local theme = {
|
|||
TSTag = { fg = p.foam },
|
||||
TSTagDelimiter = { fg = p.subtle },
|
||||
TSText = { fg = p.text },
|
||||
TSTitle = { fg = config.colors.headings.h1, style = "bold" },
|
||||
TSTitle = { fg = config.colors.headings.h1, style = 'bold' },
|
||||
-- TSType = {},
|
||||
-- TSTypeBuiltin = {},
|
||||
TSURI = { fg = p.gold },
|
||||
|
|
@ -351,7 +351,7 @@ local theme = {
|
|||
NvimTreeOpenedFile = { fg = p.text, bg = p.highlight_med },
|
||||
NvimTreeOpenedFolderName = { fg = p.foam },
|
||||
NvimTreeRootFolder = { fg = p.iris },
|
||||
NvimTreeSpecialFile = { link = "NvimTreeNormal" },
|
||||
NvimTreeSpecialFile = { link = 'NvimTreeNormal' },
|
||||
NvimTreeGitDeleted = { fg = p.love },
|
||||
NvimTreeGitDirty = { fg = p.rose },
|
||||
NvimTreeGitIgnored = { fg = p.subtle },
|
||||
|
|
@ -378,9 +378,9 @@ local theme = {
|
|||
-- https://github.com/hrsh7th/nvim-cmp
|
||||
CmpItemKind = { fg = p.iris },
|
||||
CmpItemAbbr = { fg = p.subtle },
|
||||
CmpItemAbbrMatch = { fg = p.text, style = "bold" },
|
||||
CmpItemAbbrMatchFuzzy = { fg = p.text, style = "bold" },
|
||||
CmpItemAbbrDeprecated = { fg = p.subtle, style = "strikethrough" },
|
||||
CmpItemAbbrMatch = { fg = p.text, style = 'bold' },
|
||||
CmpItemAbbrMatchFuzzy = { fg = p.text, style = 'bold' },
|
||||
CmpItemAbbrDeprecated = { fg = p.subtle, style = 'strikethrough' },
|
||||
CmpItemKindVariable = { fg = p.foam },
|
||||
CmpItemKindClass = { fg = p.gold },
|
||||
CmpItemKindInterface = { fg = p.gold },
|
||||
|
|
@ -402,12 +402,12 @@ local theme = {
|
|||
-- VimWiki
|
||||
-- https://github.com/vimwiki/vimwiki
|
||||
VimwikiHR = { fg = p.subtle },
|
||||
VimwikiHeader1 = { fg = config.colors.headings.h1, style = "bold" },
|
||||
VimwikiHeader2 = { fg = config.colors.headings.h2, style = "bold" },
|
||||
VimwikiHeader3 = { fg = config.colors.headings.h3, style = "bold" },
|
||||
VimwikiHeader4 = { fg = config.colors.headings.h4, style = "bold" },
|
||||
VimwikiHeader5 = { fg = config.colors.headings.h5, style = "bold" },
|
||||
VimwikiHeader6 = { fg = config.colors.headings.h6, style = "bold" },
|
||||
VimwikiHeader1 = { fg = config.colors.headings.h1, style = 'bold' },
|
||||
VimwikiHeader2 = { fg = config.colors.headings.h2, style = 'bold' },
|
||||
VimwikiHeader3 = { fg = config.colors.headings.h3, style = 'bold' },
|
||||
VimwikiHeader4 = { fg = config.colors.headings.h4, style = 'bold' },
|
||||
VimwikiHeader5 = { fg = config.colors.headings.h5, style = 'bold' },
|
||||
VimwikiHeader6 = { fg = config.colors.headings.h6, style = 'bold' },
|
||||
VimwikiHeaderChar = { fg = p.pine },
|
||||
VimwikiLink = { fg = p.rose },
|
||||
VimwikiList = { fg = p.iris },
|
||||
|
|
@ -415,36 +415,36 @@ local theme = {
|
|||
|
||||
-- Neorg
|
||||
-- https://github.com/nvim-neorg/neorg
|
||||
NeorgHeading1Prefix = { fg = config.colors.headings.h1, style = "bold" },
|
||||
NeorgHeading2Prefix = { fg = config.colors.headings.h2, style = "bold" },
|
||||
NeorgHeading3Prefix = { fg = config.colors.headings.h3, style = "bold" },
|
||||
NeorgHeading4Prefix = { fg = config.colors.headings.h4, style = "bold" },
|
||||
NeorgHeading5Prefix = { fg = config.colors.headings.h5, style = "bold" },
|
||||
NeorgHeading6Prefix = { fg = config.colors.headings.h6, style = "bold" },
|
||||
NeorgHeading1Prefix = { fg = config.colors.headings.h1, style = 'bold' },
|
||||
NeorgHeading2Prefix = { fg = config.colors.headings.h2, style = 'bold' },
|
||||
NeorgHeading3Prefix = { fg = config.colors.headings.h3, style = 'bold' },
|
||||
NeorgHeading4Prefix = { fg = config.colors.headings.h4, style = 'bold' },
|
||||
NeorgHeading5Prefix = { fg = config.colors.headings.h5, style = 'bold' },
|
||||
NeorgHeading6Prefix = { fg = config.colors.headings.h6, style = 'bold' },
|
||||
|
||||
NeorgHeading1Title = { fg = config.colors.headings.h1, style = "bold" },
|
||||
NeorgHeading2Title = { fg = config.colors.headings.h2, style = "bold" },
|
||||
NeorgHeading3Title = { fg = config.colors.headings.h3, style = "bold" },
|
||||
NeorgHeading4Title = { fg = config.colors.headings.h4, style = "bold" },
|
||||
NeorgHeading5Title = { fg = config.colors.headings.h5, style = "bold" },
|
||||
NeorgHeading6Title = { fg = config.colors.headings.h6, style = "bold" },
|
||||
NeorgHeading1Title = { fg = config.colors.headings.h1, style = 'bold' },
|
||||
NeorgHeading2Title = { fg = config.colors.headings.h2, style = 'bold' },
|
||||
NeorgHeading3Title = { fg = config.colors.headings.h3, style = 'bold' },
|
||||
NeorgHeading4Title = { fg = config.colors.headings.h4, style = 'bold' },
|
||||
NeorgHeading5Title = { fg = config.colors.headings.h5, style = 'bold' },
|
||||
NeorgHeading6Title = { fg = config.colors.headings.h6, style = 'bold' },
|
||||
|
||||
NeorgMarkerTitle = { fg = p.text, style = "bold" },
|
||||
NeorgMarkerTitle = { fg = p.text, style = 'bold' },
|
||||
-- LspSaga
|
||||
-- https://github.com/tami5/lspsaga.nvim (fork of https://github.com/glepnir/lspsaga.nvim)
|
||||
LspSagaCodeActionTitle = {
|
||||
fg = p.gold,
|
||||
style = "bold",
|
||||
style = 'bold',
|
||||
},
|
||||
LspSagaCodeActionBorder = { fg = p.subtle },
|
||||
LspSagaCodeActionTruncateLine = { link = "LspSagaCodeActionBorder" },
|
||||
LspSagaCodeActionTruncateLine = { link = 'LspSagaCodeActionBorder' },
|
||||
LspSagaCodeActionContent = { fg = p.foam },
|
||||
LspSagaDiagnosticBorder = { fg = p.subtle },
|
||||
LspSagaDiagnosticHeader = {
|
||||
fg = p.gold,
|
||||
style = "bold",
|
||||
style = 'bold',
|
||||
},
|
||||
LspSagaDiagnosticTruncateLine = { link = "LspSagaDiagnosticBorder" },
|
||||
LspSagaDiagnosticTruncateLine = { link = 'LspSagaDiagnosticBorder' },
|
||||
LspSagaFinderSelection = { fg = p.gold },
|
||||
LspSagaLspFinderBorder = { fg = p.subtle },
|
||||
LspSagaAutoPreview = { fg = p.subtle },
|
||||
|
|
@ -455,16 +455,16 @@ local theme = {
|
|||
ReferencesIcon = { fg = p.rose },
|
||||
DefintionPreviewTitle = {
|
||||
fg = p.rose,
|
||||
style = "bold",
|
||||
style = 'bold',
|
||||
},
|
||||
LspSagaRenamePromptPrefix = { fg = p.love },
|
||||
LspSagaRenameBorder = { fg = p.pine },
|
||||
LspFloatWinNormal = { bg = p.base },
|
||||
LspFloatWinBorder = { fg = p.subtle },
|
||||
LspSagaDocTruncateLine = { link = "LspSagaHoverBorder" },
|
||||
LspSagaDocTruncateLine = { link = 'LspSagaHoverBorder' },
|
||||
LspSagaHoverBorder = { fg = p.subtle },
|
||||
LspSagaSignatureHelpBorder = { fg = p.pine },
|
||||
LspSagaShTruncateLine = { link = "LspSagaSignatureHelpBorder" },
|
||||
LspSagaShTruncateLine = { link = 'LspSagaSignatureHelpBorder' },
|
||||
TargetWord = { fg = p.iris },
|
||||
|
||||
SagaShadow = { bg = p.overlay },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue