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
|
||||
function Highlight:setup()
|
||||
-- print(self.group)
|
||||
-- print(self.group)
|
||||
vim.api.nvim_set_hl(0, self.group, get_hl_definition_map(self.opts))
|
||||
end
|
||||
|
||||
|
@ -53,8 +53,7 @@ M.highlights.darker_niagara = Highlight.new("GruberDarkerDarkestNiagara", { fg =
|
||||
M.highlights.darker_niagara_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_bold =
|
||||
Highlight.new("GruberDarkerDarkNiagaraBold", { fg = c["niagara-1"], bold = opts.bold })
|
||||
M.highlights.dark_niagara_bold = Highlight.new("GruberDarkerDarkNiagaraBold", { fg = c["niagara-1"], bold = opts.bold })
|
||||
M.highlights.niagara = Highlight.new("GruberDarkerNiagara", { fg = c.niagara })
|
||||
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.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.quartz_sign =
|
||||
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.wisteria_sign =
|
||||
Highlight.new("GruberDarkerWisteriaSign", { fg = c.wisteria, reverse = opts.invert.signs })
|
||||
M.highlights.quartz_sign = 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.wisteria_sign = Highlight.new("GruberDarkerWisteriaSign", { fg = c.wisteria, reverse = opts.invert.signs })
|
||||
|
||||
-- Underlines
|
||||
|
||||
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.quartz_underline =
|
||||
Highlight.new("GruberDarkerQuartzUnderline", { sp = c.quartz, undercurl = opts.undercurl })
|
||||
|
@ -5,13 +5,13 @@ local gruber_hl = require("gruber-darker.highlights.colorscheme").highlights
|
||||
|
||||
---@type HighlightsProvider
|
||||
local M = {
|
||||
highlights = {},
|
||||
highlights = {},
|
||||
}
|
||||
|
||||
function M.setup()
|
||||
for _, value in pairs(M.highlights) do
|
||||
value:setup()
|
||||
end
|
||||
for _, value in pairs(M.highlights) do
|
||||
value:setup()
|
||||
end
|
||||
end
|
||||
|
||||
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_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
|
||||
-- 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
|
||||
-- M.highlights.text_environment_name = Highlight.new("@text.environment.name", {})
|
||||
---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
|
||||
M.highlights.text_todo = Highlight.new("@text.todo", { link = vim_hl.todo })
|
||||
|
@ -210,7 +210,7 @@ M.highlights.structure = Highlight.new("Structure", { link = gruber_hl.yellow_bo
|
||||
M.highlights.typedef = Highlight.new("Typedef", { link = gruber_hl.yellow_bold })
|
||||
---(preferred) any special symbol
|
||||
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
|
||||
M.highlights.tag = Highlight.new("Tag", { link = gruber_hl.yellow })
|
||||
---Character that needs attention
|
||||
|
Loading…
Reference in New Issue
Block a user