style: reformat code with StyLua
This commit is contained in:
parent
35bd4866a3
commit
9848a5d16f
@ -59,7 +59,7 @@ end
|
|||||||
|
|
||||||
---Set global highlight for the group this is associated with
|
---Set global highlight for the group this is associated with
|
||||||
function Highlight:setup()
|
function Highlight:setup()
|
||||||
-- print(self.group)
|
-- print(self.group)
|
||||||
vim.api.nvim_set_hl(0, self.group, get_hl_definition_map(self.opts))
|
vim.api.nvim_set_hl(0, self.group, get_hl_definition_map(self.opts))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -53,8 +53,7 @@ M.highlights.darker_niagara = Highlight.new("GruberDarkerDarkestNiagara", { fg =
|
|||||||
M.highlights.darker_niagara_bold =
|
M.highlights.darker_niagara_bold =
|
||||||
Highlight.new("GruberDarkerDarkestNiagaraBold", { fg = c["niagara-2"], bold = opts.bold })
|
Highlight.new("GruberDarkerDarkestNiagaraBold", { fg = c["niagara-2"], bold = opts.bold })
|
||||||
M.highlights.dark_niagara = Highlight.new("GruberDarkerDarkNiagara", { fg = c["niagara-1"] })
|
M.highlights.dark_niagara = Highlight.new("GruberDarkerDarkNiagara", { fg = c["niagara-1"] })
|
||||||
M.highlights.dark_niagara_bold =
|
M.highlights.dark_niagara_bold = Highlight.new("GruberDarkerDarkNiagaraBold", { fg = c["niagara-1"], bold = opts.bold })
|
||||||
Highlight.new("GruberDarkerDarkNiagaraBold", { fg = c["niagara-1"], bold = opts.bold })
|
|
||||||
M.highlights.niagara = Highlight.new("GruberDarkerNiagara", { fg = c.niagara })
|
M.highlights.niagara = Highlight.new("GruberDarkerNiagara", { fg = c.niagara })
|
||||||
M.highlights.niagara_bold = Highlight.new("GruberDarkerNiagaraBold", { fg = c.niagara, bold = opts.bold })
|
M.highlights.niagara_bold = Highlight.new("GruberDarkerNiagaraBold", { fg = c.niagara, bold = opts.bold })
|
||||||
|
|
||||||
@ -66,17 +65,15 @@ M.highlights.wisteria_bold = Highlight.new("GruberDarkerWisteriaBold", { fg = c.
|
|||||||
M.highlights.red_sign = Highlight.new("GruberDarkerRedSign", { fg = c.red, reverse = opts.invert.signs })
|
M.highlights.red_sign = Highlight.new("GruberDarkerRedSign", { fg = c.red, reverse = opts.invert.signs })
|
||||||
M.highlights.yellow_sign = Highlight.new("GruberDarkerYellowSign", { fg = c.yellow, reverse = opts.invert.signs })
|
M.highlights.yellow_sign = Highlight.new("GruberDarkerYellowSign", { fg = c.yellow, reverse = opts.invert.signs })
|
||||||
M.highlights.green_sign = Highlight.new("GruberDarkerGreenSign", { fg = c.green, reverse = opts.invert.signs })
|
M.highlights.green_sign = Highlight.new("GruberDarkerGreenSign", { fg = c.green, reverse = opts.invert.signs })
|
||||||
M.highlights.quartz_sign =
|
M.highlights.quartz_sign = Highlight.new("GruberDarkerQuartzSign", { fg = c.quartz, reverse = opts.invert.signs })
|
||||||
Highlight.new("GruberDarkerQuartzSign", { fg = c.quartz, reverse = opts.invert.signs })
|
M.highlights.niagara_sign = Highlight.new("GruberDarkerNiagaraSign", { fg = c.niagara, reverse = opts.invert.signs })
|
||||||
M.highlights.niagara_sign =
|
M.highlights.wisteria_sign = Highlight.new("GruberDarkerWisteriaSign", { fg = c.wisteria, reverse = opts.invert.signs })
|
||||||
Highlight.new("GruberDarkerNiagaraSign", { fg = c.niagara, reverse = opts.invert.signs })
|
|
||||||
M.highlights.wisteria_sign =
|
|
||||||
Highlight.new("GruberDarkerWisteriaSign", { fg = c.wisteria, reverse = opts.invert.signs })
|
|
||||||
|
|
||||||
-- Underlines
|
-- Underlines
|
||||||
|
|
||||||
M.highlights.red_underline = Highlight.new("GruberDarkerRedUnderline", { sp = c.red, undercurl = opts.undercurl })
|
M.highlights.red_underline = Highlight.new("GruberDarkerRedUnderline", { sp = c.red, undercurl = opts.undercurl })
|
||||||
M.highlights.yellow_underline = Highlight.new("GruberDarkerYellowUnderline", { sp = c.yellow, undercurl = opts.undercurl })
|
M.highlights.yellow_underline =
|
||||||
|
Highlight.new("GruberDarkerYellowUnderline", { sp = c.yellow, undercurl = opts.undercurl })
|
||||||
M.highlights.green_underline = Highlight.new("GruberDarkerGreenUnderline", { sp = c.green, undercurl = opts.undercurl })
|
M.highlights.green_underline = Highlight.new("GruberDarkerGreenUnderline", { sp = c.green, undercurl = opts.undercurl })
|
||||||
M.highlights.quartz_underline =
|
M.highlights.quartz_underline =
|
||||||
Highlight.new("GruberDarkerQuartzUnderline", { sp = c.quartz, undercurl = opts.undercurl })
|
Highlight.new("GruberDarkerQuartzUnderline", { sp = c.quartz, undercurl = opts.undercurl })
|
||||||
|
@ -5,13 +5,13 @@ local gruber_hl = require("gruber-darker.highlights.colorscheme").highlights
|
|||||||
|
|
||||||
---@type HighlightsProvider
|
---@type HighlightsProvider
|
||||||
local M = {
|
local M = {
|
||||||
highlights = {},
|
highlights = {},
|
||||||
}
|
}
|
||||||
|
|
||||||
function M.setup()
|
function M.setup()
|
||||||
for _, value in pairs(M.highlights) do
|
for _, value in pairs(M.highlights) do
|
||||||
value:setup()
|
value:setup()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
M.highlights.diagnostic_error = Highlight.new("DiagnosticError", { link = gruber_hl.red_bold })
|
M.highlights.diagnostic_error = Highlight.new("DiagnosticError", { link = gruber_hl.red_bold })
|
||||||
@ -28,7 +28,8 @@ M.highlights.diagnostic_underline_info = Highlight.new("DiagnosticUnderlineInfo"
|
|||||||
|
|
||||||
M.highlights.diagnostic_hint = Highlight.new("DiagnosticHint", { link = gruber_hl.wisteria })
|
M.highlights.diagnostic_hint = Highlight.new("DiagnosticHint", { link = gruber_hl.wisteria })
|
||||||
M.highlights.diagnostic_sign_hint = Highlight.new("DiagnosticSignHint", { link = gruber_hl.wisteria_sign })
|
M.highlights.diagnostic_sign_hint = Highlight.new("DiagnosticSignHint", { link = gruber_hl.wisteria_sign })
|
||||||
M.highlights.diagnostic_underline_hint = Highlight.new("DiagnosticUnderlineHint", { link = gruber_hl.wisteria_underline })
|
M.highlights.diagnostic_underline_hint =
|
||||||
|
Highlight.new("DiagnosticUnderlineHint", { link = gruber_hl.wisteria_underline })
|
||||||
|
|
||||||
---Used for highlighting "text" references
|
---Used for highlighting "text" references
|
||||||
-- M.highlights.lsp_reference_text = Highlight.new("LspReferenceText", {})
|
-- M.highlights.lsp_reference_text = Highlight.new("LspReferenceText", {})
|
||||||
|
@ -187,7 +187,7 @@ M.highlights.text_uri = Highlight.new("@text.uri", { fg = c.niagara, underline =
|
|||||||
---text indicating the type of an environment
|
---text indicating the type of an environment
|
||||||
-- M.highlights.text_environment_name = Highlight.new("@text.environment.name", {})
|
-- M.highlights.text_environment_name = Highlight.new("@text.environment.name", {})
|
||||||
---text references, footnotes, citations, etc.
|
---text references, footnotes, citations, etc.
|
||||||
-- M.highlights.text_reference = Highlight.new("@text.reference", {})
|
M.highlights.text_reference = Highlight.new("@text.reference", { link = gruber_hl.yellow_bold })
|
||||||
|
|
||||||
---todo notes
|
---todo notes
|
||||||
M.highlights.text_todo = Highlight.new("@text.todo", { link = vim_hl.todo })
|
M.highlights.text_todo = Highlight.new("@text.todo", { link = vim_hl.todo })
|
||||||
|
@ -71,9 +71,9 @@ M.highlights.match_paren = Highlight.new("MatchParen", { fg = c.fg, bg = c.wiste
|
|||||||
---'showmode' message (e.g., "---INSERT ---")
|
---'showmode' message (e.g., "---INSERT ---")
|
||||||
M.highlights.mode_msg = Highlight.new("ModeMsg", { link = gruber_hl.fg2 })
|
M.highlights.mode_msg = Highlight.new("ModeMsg", { link = gruber_hl.fg2 })
|
||||||
---Area for messages and cmdline
|
---Area for messages and cmdline
|
||||||
-- M.highlights.msg_area = Highlight.new("MsgArea", { fg = c.fg_dark })
|
-- M.highlights.msg_area = Highlight.new("MsgArea", { fg = c.fg_dark })
|
||||||
---Separator for scrolled messages, `msgsep` flag of 'display'
|
---Separator for scrolled messages, `msgsep` flag of 'display'
|
||||||
-- M.highlights.msg_separator = Highlight.new("MsgSeparator", { }),
|
-- M.highlights.msg_separator = Highlight.new("MsgSeparator", { }),
|
||||||
---|more-prompt|
|
---|more-prompt|
|
||||||
M.highlights.more_msg = Highlight.new("MoreMsg", { fg = c["fg+2"] })
|
M.highlights.more_msg = Highlight.new("MoreMsg", { fg = c["fg+2"] })
|
||||||
---'@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., ">" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|.
|
---'@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., ">" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|.
|
||||||
@ -210,9 +210,9 @@ M.highlights.structure = Highlight.new("Structure", { link = gruber_hl.yellow_bo
|
|||||||
M.highlights.typedef = Highlight.new("Typedef", { link = gruber_hl.yellow_bold })
|
M.highlights.typedef = Highlight.new("Typedef", { link = gruber_hl.yellow_bold })
|
||||||
---(preferred) any special symbol
|
---(preferred) any special symbol
|
||||||
M.highlights.special = Highlight.new("Special", { link = gruber_hl.yellow })
|
M.highlights.special = Highlight.new("Special", { link = gruber_hl.yellow })
|
||||||
M.highlights.special_char = Highlight.new("SpecialChar", { link = gruber_hl.yellow }) --- special character in a constant
|
M.highlights.special_char = Highlight.new("SpecialChar", { link = gruber_hl.yellow }) --- special character in a constant
|
||||||
---You can use CTRL-] on this
|
---You can use CTRL-] on this
|
||||||
M.highlights.tag = Highlight.new("Tag", { link = gruber_hl.yellow })
|
M.highlights.tag = Highlight.new("Tag", { link = gruber_hl.yellow })
|
||||||
---Character that needs attention
|
---Character that needs attention
|
||||||
M.highlights.delimiter = Highlight.new("Delimiter", { link = gruber_hl.fg0 })
|
M.highlights.delimiter = Highlight.new("Delimiter", { link = gruber_hl.fg0 })
|
||||||
---Special things inside a comment
|
---Special things inside a comment
|
||||||
|
Loading…
Reference in New Issue
Block a user