style: format code with StyLua
This commit is contained in:
parent
58715dc627
commit
de9a3543f8
@ -22,11 +22,11 @@ local function create_autocmds()
|
|||||||
})
|
})
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd("FileType", {
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
group = gruber_darker_group,
|
group = gruber_darker_group,
|
||||||
pattern = "qf,help",
|
pattern = "qf,help",
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.cmd.setlocal("winhighlight=Normal:NormalSB,SignColumn:SignColumnSB")
|
vim.cmd.setlocal("winhighlight=Normal:NormalSB,SignColumn:SignColumnSB")
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ function M.load()
|
|||||||
|
|
||||||
highlights.setup()
|
highlights.setup()
|
||||||
|
|
||||||
create_autocmds()
|
create_autocmds()
|
||||||
end
|
end
|
||||||
|
|
||||||
---Change colorscheme to GruberDarker
|
---Change colorscheme to GruberDarker
|
||||||
|
@ -14,12 +14,12 @@
|
|||||||
local DEFAULTS = {
|
local DEFAULTS = {
|
||||||
bold = true,
|
bold = true,
|
||||||
italic = {
|
italic = {
|
||||||
strings = true,
|
strings = true,
|
||||||
comments = true,
|
comments = true,
|
||||||
operators = false,
|
operators = false,
|
||||||
folds = true,
|
folds = true,
|
||||||
},
|
},
|
||||||
-- undercurl = true,
|
-- undercurl = true,
|
||||||
underline = true,
|
underline = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,11 +35,11 @@ local instance = nil
|
|||||||
---@return GruberDarkerOpts
|
---@return GruberDarkerOpts
|
||||||
---@nodiscard
|
---@nodiscard
|
||||||
function ConfigMgr.get_opts()
|
function ConfigMgr.get_opts()
|
||||||
if instance ~= nil then
|
if instance ~= nil then
|
||||||
return instance.resolved_opts
|
return instance.resolved_opts
|
||||||
end
|
end
|
||||||
|
|
||||||
return DEFAULTS
|
return DEFAULTS
|
||||||
end
|
end
|
||||||
|
|
||||||
---Set GruberDarker colorscheme options
|
---Set GruberDarker colorscheme options
|
||||||
|
@ -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()
|
||||||
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
|
||||||
|
|
||||||
return Highlight
|
return Highlight
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
local providers = {
|
local providers = {
|
||||||
require("gruber-darker.highlights.vim"),
|
require("gruber-darker.highlights.vim"),
|
||||||
require("gruber-darker.highlights.terminal"),
|
require("gruber-darker.highlights.terminal"),
|
||||||
require("gruber-darker.highlights.treesitter"),
|
require("gruber-darker.highlights.treesitter"),
|
||||||
}
|
}
|
||||||
|
|
||||||
---Set highlights for configured providers
|
---Set highlights for configured providers
|
||||||
|
@ -15,8 +15,7 @@ function M.setup()
|
|||||||
end
|
end
|
||||||
|
|
||||||
---any comment
|
---any comment
|
||||||
M.highlights.comment =
|
M.highlights.comment = Highlight.new("Comment", { fg = c.default.brown, italic = opts.italic.comments })
|
||||||
Highlight.new("Comment", { fg = c.default.brown, italic = opts.italic.comments })
|
|
||||||
---used for the columns set with 'colorcolumn'
|
---used for the columns set with 'colorcolumn'
|
||||||
M.highlights.color_column = Highlight.new("ColorColumn", { bg = c.default["bg+2"] })
|
M.highlights.color_column = Highlight.new("ColorColumn", { bg = c.default["bg+2"] })
|
||||||
---placeholder characters substituted for concealed text (see 'conceallevel')
|
---placeholder characters substituted for concealed text (see 'conceallevel')
|
||||||
@ -54,7 +53,8 @@ M.highlights.vert_split = Highlight.new("VertSplit", { fg = c.default["fg+2"], b
|
|||||||
---the column separating vertically split windows
|
---the column separating vertically split windows
|
||||||
M.highlights.win_separator = Highlight.new("WinSeparator", { fg = c.default["bg+2"], bold = opts.bold })
|
M.highlights.win_separator = Highlight.new("WinSeparator", { fg = c.default["bg+2"], bold = opts.bold })
|
||||||
---line used for closed folds
|
---line used for closed folds
|
||||||
M.highlights.folded = Highlight.new("Folded", { fg = c.default.brown, bg = c.default["fg+2"], italic = opts.italic.folds })
|
M.highlights.folded =
|
||||||
|
Highlight.new("Folded", { fg = c.default.brown, bg = c.default["fg+2"], italic = opts.italic.folds })
|
||||||
---'foldcolumn'
|
---'foldcolumn'
|
||||||
M.highlights.fold_column = Highlight.new("FoldColumn", { fg = c.default.brown, bg = c.default["fg+2"] })
|
M.highlights.fold_column = Highlight.new("FoldColumn", { fg = c.default.brown, bg = c.default["fg+2"] })
|
||||||
---column where |signs| are displayed
|
---column where |signs| are displayed
|
||||||
@ -207,8 +207,7 @@ M.highlights.italic = Highlight.new("Italic", { italic = true })
|
|||||||
|
|
||||||
---(preferred) anything that needs extra attention; mostly the keywords TODO FIXME and XXX
|
---(preferred) anything that needs extra attention; mostly the keywords TODO FIXME and XXX
|
||||||
M.highlights.todo = Highlight.new("Todo", { fg = c.default.bg, bg = c.default.yellow })
|
M.highlights.todo = Highlight.new("Todo", { fg = c.default.bg, bg = c.default.yellow })
|
||||||
M.highlights.md_heading_delim =
|
M.highlights.md_heading_delim = Highlight.new("markdownHeadingDelimiter", { fg = c.default.niagara, bold = opts.bold })
|
||||||
Highlight.new("markdownHeadingDelimiter", { fg = c.default.niagara, bold = opts.bold })
|
|
||||||
M.highlights.md_code = Highlight.new("markdownCode", { fg = c.default.green })
|
M.highlights.md_code = Highlight.new("markdownCode", { fg = c.default.green })
|
||||||
M.highlights.md_code_block = Highlight.new("markdownCodeBlock", { fg = c.default.green })
|
M.highlights.md_code_block = Highlight.new("markdownCodeBlock", { fg = c.default.green })
|
||||||
---markdownH1 = Highlight.new("markdownH1", { fg = c.magenta, bold = true })
|
---markdownH1 = Highlight.new("markdownH1", { fg = c.magenta, bold = true })
|
||||||
@ -216,8 +215,7 @@ M.highlights.md_code_block = Highlight.new("markdownCodeBlock", { fg = c.default
|
|||||||
---markdownLinkText = Highlight.new("markdownLinkText", { fg = c.blue, underline = true })
|
---markdownLinkText = Highlight.new("markdownLinkText", { fg = c.blue, underline = true })
|
||||||
M.highlights.md_italic = Highlight.new("markdownItalic", { fg = c.default.wisteria, italic = true })
|
M.highlights.md_italic = Highlight.new("markdownItalic", { fg = c.default.wisteria, italic = true })
|
||||||
M.highlights.md_bold = Highlight.new("markdownBold", { fg = c.default.yellow, bold = opts.bold })
|
M.highlights.md_bold = Highlight.new("markdownBold", { fg = c.default.yellow, bold = opts.bold })
|
||||||
M.highlights.md_code_delim =
|
M.highlights.md_code_delim = Highlight.new("markdownCodeDelimiter", { fg = c.default.brown, italic = true })
|
||||||
Highlight.new("markdownCodeDelimiter", { fg = c.default.brown, italic = true })
|
|
||||||
M.highlights.md_error = Highlight.new("markdownError", { fg = c.default.fg, bg = c.default["bg+1"] })
|
M.highlights.md_error = Highlight.new("markdownError", { fg = c.default.fg, bg = c.default["bg+1"] })
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
Loading…
Reference in New Issue
Block a user