style: reformat code with StyLua

This commit is contained in:
Daniel Hill 2023-01-22 23:56:37 -05:00
parent ab566a9599
commit d688bfafd6
4 changed files with 243 additions and 237 deletions

7
.stylua.toml Normal file
View File

@ -0,0 +1,7 @@
column_width = 120
line_endings = "Unix"
indent_type = "Tabs"
indent_width = 2
quote_style = "AutoPreferDouble"
call_parentheses = "Always"
# collapse_simple_statement = "Never"

View File

@ -6,7 +6,7 @@
---@type ConfigMgr ---@type ConfigMgr
local M = { local M = {
resolved_opts = nil resolved_opts = nil,
} }
---Get default GruberDarker colorscheme options ---Get default GruberDarker colorscheme options
@ -22,17 +22,17 @@ end
---@return Options|nil ---@return Options|nil
---@nodiscard ---@nodiscard
function M.get_resolved_opts() function M.get_resolved_opts()
return M.resolved_opts return M.resolved_opts
end end
---Set GruberDarker colorscheme options ---Set GruberDarker colorscheme options
---@param opts Options ---@param opts Options
function M.set(opts) function M.set(opts)
-- If user already called GruberDarker setup -- If user already called GruberDarker setup
-- either with/without default options -- either with/without default options
if M.resolved_opts ~= nil then if M.resolved_opts ~= nil then
return return
end end
M.resolved_opts = vim.tbl_deep_extend("force", M.get_default_opts(), opts) M.resolved_opts = vim.tbl_deep_extend("force", M.get_default_opts(), opts)
end end

View File

@ -3,235 +3,235 @@ local c = require("gruber-darker.palette")
local M = {} local M = {}
M.groups = { M.groups = {
Comment = { fg = c.default.brown }, -- any comment Comment = { fg = c.default.brown }, -- any comment
ColorColumn = { bg = c.default["bg+2"] }, -- used for the columns set with 'colorcolumn' ColorColumn = { bg = c.default["bg+2"] }, -- used for the columns set with 'colorcolumn'
Conceal = { fg = c.default.fg, bg = c.default.bg }, -- placeholder characters substituted for concealed text (see 'conceallevel') Conceal = { fg = c.default.fg, bg = c.default.bg }, -- placeholder characters substituted for concealed text (see 'conceallevel')
Cursor = { bg = c.default.yellow }, -- character under the cursor Cursor = { bg = c.default.yellow }, -- character under the cursor
lCursor = { fg = c.default.none, bg = c.default.yellow }, -- the character under the cursor when |language-mapping| is used (see 'guicursor') lCursor = { fg = c.default.none, bg = c.default.yellow }, -- the character under the cursor when |language-mapping| is used (see 'guicursor')
CursorIM = { fg = c.default.none, bg = c.default.yellow }, -- like Cursor, but used when in IME mode |CursorIM| CursorIM = { fg = c.default.none, bg = c.default.yellow }, -- like Cursor, but used when in IME mode |CursorIM|
CursorColumn = { bg = c.default["bg+2"] }, -- Screen-column at the cursor, when 'cursorcolumn' is set. CursorColumn = { bg = c.default["bg+2"] }, -- Screen-column at the cursor, when 'cursorcolumn' is set.
CursorLine = { bg = c.default["bg+1"] }, -- Screen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set. CursorLine = { bg = c.default["bg+1"] }, -- Screen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set.
-- Directory = { fg = c.default.lightblue }, -- directory names (and other special names in listings) -- Directory = { fg = c.default.lightblue }, -- directory names (and other special names in listings)
DiffAdd = { fg = c.default.green, bg = c.default.none }, -- diff mode: Added line |diff.txt| DiffAdd = { fg = c.default.green, bg = c.default.none }, -- diff mode: Added line |diff.txt|
-- DiffChange = { bg = c.diff.change }, -- diff mode: Changed line |diff.txt| -- DiffChange = { bg = c.diff.change }, -- diff mode: Changed line |diff.txt|
DiffDelete = { fg = c.default["red+1"], bg = c.default.none }, -- diff mode: Deleted line |diff.txt| DiffDelete = { fg = c.default["red+1"], bg = c.default.none }, -- diff mode: Deleted line |diff.txt|
-- DiffText = { bg = c.diff.text }, -- diff mode: Changed text within a changed line |diff.txt| -- DiffText = { bg = c.diff.text }, -- diff mode: Changed text within a changed line |diff.txt|
EndOfBuffer = { fg = c.default.fg, bg = c.default.bg }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|. EndOfBuffer = { fg = c.default.fg, bg = c.default.bg }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
-- TermCursor = { }, -- cursor in a focused terminal -- TermCursor = { }, -- cursor in a focused terminal
-- TermCursorNC= { }, -- cursor in an unfocused terminal -- TermCursorNC= { }, -- cursor in an unfocused terminal
ErrorMsg = { fg = c.default.white, bg = c.default.red }, -- error messages on the command line ErrorMsg = { fg = c.default.white, bg = c.default.red }, -- error messages on the command line
VertSplit = { fg = c.default["fg+2"], bg = c.default["bg+1"] }, -- the column separating vertically split windows VertSplit = { fg = c.default["fg+2"], bg = c.default["bg+1"] }, -- the column separating vertically split windows
WinSeparator = { fg = c.default["bg+2"], bold = true }, -- the column separating vertically split windows WinSeparator = { fg = c.default["bg+2"], bold = true }, -- the column separating vertically split windows
Folded = { fg = c.default.brown, bg = c.default["fg+2"], italic = true }, -- line used for closed folds Folded = { fg = c.default.brown, bg = c.default["fg+2"], italic = true }, -- line used for closed folds
FoldColumn = { fg = c.default.brown, bg = c.default["fg+2"] }, -- 'foldcolumn' FoldColumn = { fg = c.default.brown, bg = c.default["fg+2"] }, -- 'foldcolumn'
SignColumn = { fg = c.default["bg+2"], bg = c.default.none }, -- column where |signs| are displayed SignColumn = { fg = c.default["bg+2"], bg = c.default.none }, -- column where |signs| are displayed
-- SignColumnSB = { bg = c.bg_sidebar, fg = c.fg_gutter }, -- column where |signs| are displayed -- SignColumnSB = { bg = c.bg_sidebar, fg = c.fg_gutter }, -- column where |signs| are displayed
-- Substitute = { bg = c.red, fg = c.black }, -- |:substitute| replacement text highlighting -- Substitute = { bg = c.red, fg = c.black }, -- |:substitute| replacement text highlighting
LineNr = { fg = c.default["bg+4"] }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set. LineNr = { fg = c.default["bg+4"] }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set.
CursorLineNr = { fg = c.default.yellow }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line. CursorLineNr = { fg = c.default.yellow }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line.
MatchParen = { fg = c.default["bg+2"], bg = c.default.yellow }, -- The character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt| MatchParen = { fg = c.default["bg+2"], bg = c.default.yellow }, -- The character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt|
ModeMsg = { fg = c.default["fg+2"] }, -- 'showmode' message (e.g., "-- INSERT -- ") ModeMsg = { fg = c.default["fg+2"] }, -- 'showmode' message (e.g., "-- INSERT -- ")
-- MsgArea = { fg = c.fg_dark }, -- Area for messages and cmdline -- MsgArea = { fg = c.fg_dark }, -- Area for messages and cmdline
-- MsgSeparator= { }, -- Separator for scrolled messages, `msgsep` flag of 'display' -- MsgSeparator= { }, -- Separator for scrolled messages, `msgsep` flag of 'display'
MoreMsg = { fg = c.default["fg+2"] }, -- |more-prompt| MoreMsg = { fg = c.default["fg+2"] }, -- |more-prompt|
NonText = { fg = c.default["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|. NonText = { fg = c.default["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|.
Normal = { fg = c.default.fg, bg = c.default.bg }, -- normal text Normal = { fg = c.default.fg, bg = c.default.bg }, -- normal text
NormalNC = { fg = c.default.fg, bg = c.default.bg }, -- normal text in non-current windows NormalNC = { fg = c.default.fg, bg = c.default.bg }, -- normal text in non-current windows
NormalSB = { fg = c.default.fg, bg = c.default.bg }, -- normal text in sidebar NormalSB = { fg = c.default.fg, bg = c.default.bg }, -- normal text in sidebar
NormalFloat = { fg = c.default.fg, bg = c.default.bg }, -- Normal text in floating windows. NormalFloat = { fg = c.default.fg, bg = c.default.bg }, -- Normal text in floating windows.
FloatBorder = { fg = c.default["bg+2"], bg = c.default["bg-1"] }, FloatBorder = { fg = c.default["bg+2"], bg = c.default["bg-1"] },
Pmenu = { fg = c.default.fg, bg = c.default["bg+1"] }, -- Popup menu: normal item. Pmenu = { fg = c.default.fg, bg = c.default["bg+1"] }, -- Popup menu: normal item.
PmenuSel = { fg = c.default.fg, bg = c.default["bg+2"] }, -- Popup menu: selected item. PmenuSel = { fg = c.default.fg, bg = c.default["bg+2"] }, -- Popup menu: selected item.
PmenuSbar = { bg = c.default.bg }, -- Popup menu: scrollbar. PmenuSbar = { bg = c.default.bg }, -- Popup menu: scrollbar.
PmenuThumb = { bg = c.default.bg }, -- Popup menu: Thumb of the scrollbar. PmenuThumb = { bg = c.default.bg }, -- Popup menu: Thumb of the scrollbar.
Question = { fg = c.default.niagara }, -- |hit-enter| prompt and yes/no questions Question = { fg = c.default.niagara }, -- |hit-enter| prompt and yes/no questions
-- QuickFixLine = { bg = c.bg_visual, bold = true }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there. -- QuickFixLine = { bg = c.bg_visual, bold = true }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.
Search = { fg = c.default.black, bg = c.default.yellow }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out. Search = { fg = c.default.black, bg = c.default.yellow }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.
IncSearch = { fg = c.default.black, bg = c.default["fg+2"] }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c" IncSearch = { fg = c.default.black, bg = c.default["fg+2"] }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c"
CurSearch = { link = "IncSearch" }, CurSearch = { link = "IncSearch" },
SpecialKey = { fg = c.default["fg+2"] }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace| SpecialKey = { fg = c.default["fg+2"] }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace|
SpellBad = { undercurl = true }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise. SpellBad = { undercurl = true }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.
SpellCap = { undercurl = true }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise. SpellCap = { undercurl = true }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise.
SpellLocal = { undercurl = true }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise. SpellLocal = { undercurl = true }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise.
SpellRare = { undercurl = true }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise. SpellRare = { undercurl = true }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise.
StatusLine = { fg = c.default.white, bg = c.default["bg+1"] }, -- status line of current window StatusLine = { fg = c.default.white, bg = c.default["bg+1"] }, -- status line of current window
StatusLineNC = { fg = c.default.quartz, bg = c.default["bg+1"] }, -- status lines of not-current windows Note: if this is equal to "StatusLine" Vim will use "^^^" in the status line of the current window. StatusLineNC = { fg = c.default.quartz, bg = c.default["bg+1"] }, -- status lines of not-current windows Note: if this is equal to "StatusLine" Vim will use "^^^" in the status line of the current window.
TabLine = { bg = c.default.none }, -- tab pages line, not active tab page label TabLine = { bg = c.default.none }, -- tab pages line, not active tab page label
TabLineFill = { fg = c.default["bg+4"], bg = c.default["bg+1"] }, -- tab pages line, where there are no labels TabLineFill = { fg = c.default["bg+4"], bg = c.default["bg+1"] }, -- tab pages line, where there are no labels
TabLineSel = { fg = c.default.yellow, bg = c.default.none, bold = true }, -- tab pages line, active tab page label TabLineSel = { fg = c.default.yellow, bg = c.default.none, bold = true }, -- tab pages line, active tab page label
Title = { fg = c.default.quartz }, -- titles for output from ":set all", ":autocmd" etc. Title = { fg = c.default.quartz }, -- titles for output from ":set all", ":autocmd" etc.
Visual = { bg = c.default["bg+2"] }, -- Visual mode selection Visual = { bg = c.default["bg+2"] }, -- Visual mode selection
VisualNOS = { fg = c.default.red }, -- Visual mode selection when vim is "Not Owning the Selection". VisualNOS = { fg = c.default.red }, -- Visual mode selection when vim is "Not Owning the Selection".
WarningMsg = { fg = c.default.red }, -- warning messages WarningMsg = { fg = c.default.red }, -- warning messages
-- Whitespace = { fg = c.default.black, bg = c.default.red }, -- "nbsp", "space", "tab" and "trail" in 'listchars' -- Whitespace = { fg = c.default.black, bg = c.default.red }, -- "nbsp", "space", "tab" and "trail" in 'listchars'
WildMenu = { fg = c.default.black, bg = c.default.yellow }, -- current match in 'wildmenu' completion WildMenu = { fg = c.default.black, bg = c.default.yellow }, -- current match in 'wildmenu' completion
-- These groups are not listed as default vim groups, -- These groups are not listed as default vim groups,
-- but they are defacto standard group names for syntax highlighting. -- but they are defacto standard group names for syntax highlighting.
-- commented out groups should chain up to their "preferred" group by -- commented out groups should chain up to their "preferred" group by
-- default, -- default,
-- Uncomment and edit if you want more specific syntax highlighting. -- Uncomment and edit if you want more specific syntax highlighting.
Constant = { fg = c.default.quartz }, -- (preferred) any constant Constant = { fg = c.default.quartz }, -- (preferred) any constant
String = { fg = c.default.green }, -- a string constant: "this is a string" String = { fg = c.default.green }, -- a string constant: "this is a string"
Character = { fg = c.default.green }, -- a character constant: 'c', '\n' Character = { fg = c.default.green }, -- a character constant: 'c', '\n'
-- Number = { }, -- a number constant: 234, 0xff -- Number = { }, -- a number constant: 234, 0xff
-- Boolean = { }, -- a boolean constant: TRUE, false -- Boolean = { }, -- a boolean constant: TRUE, false
-- Float = { }, -- a floating point constant: 2.3e10 -- Float = { }, -- a floating point constant: 2.3e10
Identifier = { fg = c.default["fg+1"] }, -- (preferred) any variable name Identifier = { fg = c.default["fg+1"] }, -- (preferred) any variable name
Function = { fg = c.default.niagara }, -- function name (also: methods for classes) Function = { fg = c.default.niagara }, -- function name (also: methods for classes)
Statement = { fg = c.default.yellow }, -- (preferred) any statement Statement = { fg = c.default.yellow }, -- (preferred) any statement
-- Conditional = { }, -- if, then, else, endif, switch, etc. -- Conditional = { }, -- if, then, else, endif, switch, etc.
-- Repeat = { }, -- for, do, while, etc. -- Repeat = { }, -- for, do, while, etc.
-- Label = { }, -- case, default, etc. -- Label = { }, -- case, default, etc.
Operator = { fg = c.default.yellow }, -- "sizeof", "+", "*", etc. Operator = { fg = c.default.yellow }, -- "sizeof", "+", "*", etc.
Keyword = { fg = c.default.yellow, bold = true }, -- any other keyword Keyword = { fg = c.default.yellow, bold = true }, -- any other keyword
-- Exception = { }, -- try, catch, throw -- Exception = { }, -- try, catch, throw
PreProc = { fg = c.default.quartz }, -- (preferred) generic Preprocessor PreProc = { fg = c.default.quartz }, -- (preferred) generic Preprocessor
-- Include = { }, -- preprocessor #include -- Include = { }, -- preprocessor #include
-- Define = { }, -- preprocessor #define -- Define = { }, -- preprocessor #define
-- Macro = { }, -- same as Define -- Macro = { }, -- same as Define
-- PreCondit = { }, -- preprocessor #if, #else, #endif, etc. -- PreCondit = { }, -- preprocessor #if, #else, #endif, etc.
Type = { fg = c.default.quartz }, -- (preferred) int, long, char, etc. Type = { fg = c.default.quartz }, -- (preferred) int, long, char, etc.
-- StorageClass = { }, -- static, register, volatile, etc. -- StorageClass = { }, -- static, register, volatile, etc.
-- Structure = { }, -- struct, union, enum, etc. -- Structure = { }, -- struct, union, enum, etc.
-- Typedef = { }, -- A typedef -- Typedef = { }, -- A typedef
Special = { fg = c.default.yellow }, -- (preferred) any special symbol Special = { fg = c.default.yellow }, -- (preferred) any special symbol
-- SpecialChar = { }, -- special character in a constant -- SpecialChar = { }, -- special character in a constant
-- Tag = { }, -- you can use CTRL-] on this -- Tag = { }, -- you can use CTRL-] on this
-- Delimiter = { }, -- character that needs attention -- Delimiter = { }, -- character that needs attention
-- SpecialComment= { }, -- special things inside a comment -- SpecialComment= { }, -- special things inside a comment
-- Debug = { fg = c.default["fg+2"] }, -- debugging statements -- Debug = { fg = c.default["fg+2"] }, -- debugging statements
Underlined = { underline = true }, -- (preferred) text that stands out, HTML links Underlined = { underline = true }, -- (preferred) text that stands out, HTML links
Bold = { bold = true }, Bold = { bold = true },
Italic = { italic = true }, Italic = { italic = true },
-- ("Ignore", below, may be invisible...) -- ("Ignore", below, may be invisible...)
-- Ignore = { }, -- (preferred) left blank, hidden |hl-Ignore| -- Ignore = { }, -- (preferred) left blank, hidden |hl-Ignore|
-- Error = { fg = c.error }, -- (preferred) any erroneous construct -- Error = { fg = c.error }, -- (preferred) any erroneous construct
Todo = { fg = c.default.bg, bg = c.default.yellow }, -- (preferred) anything that needs extra attention; mostly the keywords TODO FIXME and XXX Todo = { fg = c.default.bg, bg = c.default.yellow }, -- (preferred) anything that needs extra attention; mostly the keywords TODO FIXME and XXX
markdownHeadingDelimiter = { fg = c.default.niagara, bold = true }, markdownHeadingDelimiter = { fg = c.default.niagara, bold = true },
markdownCode = { fg = c.default.green }, markdownCode = { fg = c.default.green },
markdownCodeBlock = { fg = c.default.green }, markdownCodeBlock = { fg = c.default.green },
-- markdownH1 = { fg = c.magenta, bold = true }, -- markdownH1 = { fg = c.magenta, bold = true },
-- markdownH2 = { fg = c.blue, bold = true }, -- markdownH2 = { fg = c.blue, bold = true },
-- markdownLinkText = { fg = c.blue, underline = true }, -- markdownLinkText = { fg = c.blue, underline = true },
markdownItalic = { fg = c.default.wisteria, italic = true }, markdownItalic = { fg = c.default.wisteria, italic = true },
markdownBold = { fg = c.default.yellow, bold = true }, markdownBold = { fg = c.default.yellow, bold = true },
markdownCodeDelimiter = { fg = c.default.brown, italic = true }, markdownCodeDelimiter = { fg = c.default.brown, italic = true },
markdownError = { fg = c.default.fg, bg = c.default["bg+1"] }, markdownError = { fg = c.default.fg, bg = c.default["bg+1"] },
-- These groups are for the neovim tree-sitter highlights. -- These groups are for the neovim tree-sitter highlights.
-- As of writing, tree-sitter support is a WIP, group names may change. -- As of writing, tree-sitter support is a WIP, group names may change.
-- By default, most of these groups link to an appropriate Vim group, -- By default, most of these groups link to an appropriate Vim group,
-- TSError -> Error for example, so you do not have to define these unless -- TSError -> Error for example, so you do not have to define these unless
-- you explicitly want to support Treesitter's improved syntax awareness. -- you explicitly want to support Treesitter's improved syntax awareness.
-- TSAnnotation = { }, -- For C++/Dart attributes, annotations that can be attached to the code to denote some kind of meta information. -- TSAnnotation = { }, -- For C++/Dart attributes, annotations that can be attached to the code to denote some kind of meta information.
-- TSAttribute = { }, -- (unstable) TODO: docs -- TSAttribute = { }, -- (unstable) TODO: docs
TSBoolean = { fg = c.default.quartz }, -- For booleans. TSBoolean = { fg = c.default.quartz }, -- For booleans.
TSCharacter = { fg = c.default.green }, -- For characters. TSCharacter = { fg = c.default.green }, -- For characters.
TSComment = { fg = c.default.brown }, -- For comment blocks. TSComment = { fg = c.default.brown }, -- For comment blocks.
-- TSNote = { fg = c.bg, bg = c.info }, -- TSNote = { fg = c.bg, bg = c.info },
["@text.warning"] = { fg = c.default.red }, ["@text.warning"] = { fg = c.default.red },
["@text.danger"] = { fg = c.default.white, bg = c.default.red }, ["@text.danger"] = { fg = c.default.white, bg = c.default.red },
-- ["@constructor"] = { fg = c.magenta }, -- For constructor calls and definitions: `= { }` in Lua, and Java constructors. -- ["@constructor"] = { fg = c.magenta }, -- For constructor calls and definitions: `= { }` in Lua, and Java constructors.
TSConditional = { fg = c.default.yellow }, -- For keywords related to conditionnals. TSConditional = { fg = c.default.yellow }, -- For keywords related to conditionnals.
TSConstant = { fg = c.default.quartz }, -- For constants TSConstant = { fg = c.default.quartz }, -- For constants
-- TSConstBuiltin = { }, -- For constant that are built in the language: `nil` in Lua. -- TSConstBuiltin = { }, -- For constant that are built in the language: `nil` in Lua.
-- TSConstMacro = { }, -- For constants that are defined by macros: `NULL` in C. -- TSConstMacro = { }, -- For constants that are defined by macros: `NULL` in C.
-- TSError = { }, -- For syntax/parser errors. -- TSError = { }, -- For syntax/parser errors.
-- TSException = { }, -- For exception related keywords. -- TSException = { }, -- For exception related keywords.
-- ["@field"] = { fg = c.green1 }, -- For fields. -- ["@field"] = { fg = c.green1 }, -- For fields.
-- TSFloat = { }, -- For floats. -- TSFloat = { }, -- For floats.
-- TSFunction = { }, -- For function (calls and definitions). -- TSFunction = { }, -- For function (calls and definitions).
-- TSFuncBuiltin = { }, -- For builtin functions: `table.insert` in Lua. -- TSFuncBuiltin = { }, -- For builtin functions: `table.insert` in Lua.
-- TSFuncMacro = { }, -- For macro defined fuctions (calls and definitions): each `macro_rules` in Rust. -- TSFuncMacro = { }, -- For macro defined fuctions (calls and definitions): each `macro_rules` in Rust.
-- TSInclude = { }, -- For includes: `#include` in C, `use` or `extern crate` in Rust, or `require` in Lua. -- TSInclude = { }, -- For includes: `#include` in C, `use` or `extern crate` in Rust, or `require` in Lua.
-- ["@keyword"] = { fg = c.purple, style = options.styles.keywords }, -- For keywords that don't fall in previous categories. -- ["@keyword"] = { fg = c.purple, style = options.styles.keywords }, -- For keywords that don't fall in previous categories.
-- ["@keyword.function"] = { fg = c.magenta, style = options.styles.functions }, -- For keywords used to define a fuction. -- ["@keyword.function"] = { fg = c.magenta, style = options.styles.functions }, -- For keywords used to define a fuction.
-- ["@label"] = { fg = c.blue }, -- For labels: `label:` in C and `:label:` in Lua. -- ["@label"] = { fg = c.blue }, -- For labels: `label:` in C and `:label:` in Lua.
-- TSMethod = { }, -- For method calls and definitions. -- TSMethod = { }, -- For method calls and definitions.
-- TSNamespace = { }, -- For identifiers referring to modules and namespaces. -- TSNamespace = { }, -- For identifiers referring to modules and namespaces.
-- TSNone = { }, -- TODO: docs -- TSNone = { }, -- TODO: docs
-- TSNumber = { }, -- For all numbers -- TSNumber = { }, -- For all numbers
-- ["@operator"] = { fg = c.blue5 }, -- For any operator: `+`, but also `->` and `*` in C. -- ["@operator"] = { fg = c.blue5 }, -- For any operator: `+`, but also `->` and `*` in C.
-- ["@parameter"] = { fg = c.yellow }, -- For parameters of a function. -- ["@parameter"] = { fg = c.yellow }, -- For parameters of a function.
-- TSParameterReference= { }, -- For references to parameters of a function. -- TSParameterReference= { }, -- For references to parameters of a function.
-- ["@property"] = { fg = c.green1 }, -- Same as `TSField`. -- ["@property"] = { fg = c.green1 }, -- Same as `TSField`.
-- ["@punctuation.delimiter"] = { fg = c.blue5 }, -- For delimiters ie: `.` -- ["@punctuation.delimiter"] = { fg = c.blue5 }, -- For delimiters ie: `.`
-- ["@punctuation.bracket"] = { fg = c.fg_dark }, -- For brackets and parens. -- ["@punctuation.bracket"] = { fg = c.fg_dark }, -- For brackets and parens.
-- ["@punctuation.special"] = { fg = c.blue5 }, -- For special punctutation that does not fall in the catagories before. -- ["@punctuation.special"] = { fg = c.blue5 }, -- For special punctutation that does not fall in the catagories before.
TSRepeat = { fg = c.default.yellow }, -- For keywords related to loops. TSRepeat = { fg = c.default.yellow }, -- For keywords related to loops.
TSString = { fg = c.default.green }, -- For strings. TSString = { fg = c.default.green }, -- For strings.
-- ["@string.regex"] = { fg = c.blue6 }, -- For regexes. -- ["@string.regex"] = { fg = c.blue6 }, -- For regexes.
-- ["@string.escape"] = { fg = c.magenta }, -- For escape characters within a string. -- ["@string.escape"] = { fg = c.magenta }, -- For escape characters within a string.
-- TSSymbol = { }, -- For identifiers referring to symbols or atoms. -- TSSymbol = { }, -- For identifiers referring to symbols or atoms.
TSType = { fg = c.default.quartz }, -- For types. TSType = { fg = c.default.quartz }, -- For types.
-- TSTypeBuiltin = { }, -- For builtin types. -- TSTypeBuiltin = { }, -- For builtin types.
-- ["@variable"] = { style = options.styles.variables }, -- Any variable name that does not have another highlight. -- ["@variable"] = { style = options.styles.variables }, -- Any variable name that does not have another highlight.
-- ["@variable.builtin"] = { fg = c.red }, -- Variable names that are defined by the languages, like `this` or `self`. -- ["@variable.builtin"] = { fg = c.red }, -- Variable names that are defined by the languages, like `this` or `self`.
-- TSTag = { }, -- Tags like html tag names. -- TSTag = { }, -- Tags like html tag names.
-- TSTagDelimiter = { }, -- Tag delimiter like `<` `>` `/` -- TSTagDelimiter = { }, -- Tag delimiter like `<` `>` `/`
-- TSText = { }, -- For strings considered text in a markup language. -- TSText = { }, -- For strings considered text in a markup language.
-- ["@text.reference"] = { fg = c.teal }, -- ["@text.reference"] = { fg = c.teal },
-- TSEmphasis = { }, -- For text to be represented with emphasis. -- TSEmphasis = { }, -- For text to be represented with emphasis.
-- TSUnderline = { }, -- For text to be represented with an underline. -- TSUnderline = { }, -- For text to be represented with an underline.
-- TSStrike = { }, -- For strikethrough text. -- TSStrike = { }, -- For strikethrough text.
-- TSTitle = { }, -- Text that is part of a title. -- TSTitle = { }, -- Text that is part of a title.
-- TSLiteral = { }, -- Literal text. -- TSLiteral = { }, -- Literal text.
TSURI = { fg = c.default.niagara, underline = true }, -- Any URI like a link or email. TSURI = { fg = c.default.niagara, underline = true }, -- Any URI like a link or email.
["@text.diff.add"] = { link = "DiffAdd" }, ["@text.diff.add"] = { link = "DiffAdd" },
["@text.diff.delete"] = { link = "DiffDelete" }, ["@text.diff.delete"] = { link = "DiffDelete" },
-- Cmp -- Cmp
-- CmpDocumentation = { link = "NormalFloat" }, -- CmpDocumentation = { link = "NormalFloat" },
-- CmpDocumentationBorder = { link = "FloatBorder" }, -- CmpDocumentationBorder = { link = "FloatBorder" },
-- CmpItemAbbr = { fg = c.fg, bg = c.none }, -- CmpItemAbbr = { fg = c.fg, bg = c.none },
-- CmpItemAbbrDeprecated = { fg = c.fg_gutter, bg = c.none, strikethrough = true }, -- CmpItemAbbrDeprecated = { fg = c.fg_gutter, bg = c.none, strikethrough = true },
-- CmpItemAbbrMatch = { fg = c.blue1, bg = c.none }, -- CmpItemAbbrMatch = { fg = c.blue1, bg = c.none },
-- CmpItemAbbrMatchFuzzy = { fg = c.blue1, bg = c.none }, -- CmpItemAbbrMatchFuzzy = { fg = c.blue1, bg = c.none },
-- CmpItemMenu = { fg = c.default.white, bg = c.default["bg+4"] }, -- CmpItemMenu = { fg = c.default.white, bg = c.default["bg+4"] },
-- CmpItemKindDefault = { fg = c.default.white, bg = c.default["bg+4"] }, -- CmpItemKindDefault = { fg = c.default.white, bg = c.default["bg+4"] },
-- CmpItemKindKeyword = { fg = c.cyan, bg = c.none }, -- CmpItemKindKeyword = { fg = c.cyan, bg = c.none },
-- CmpItemKindVariable = { fg = c.magenta, bg = c.none }, -- CmpItemKindVariable = { fg = c.magenta, bg = c.none },
-- CmpItemKindConstant = { fg = c.magenta, bg = c.none }, -- CmpItemKindConstant = { fg = c.magenta, bg = c.none },
-- CmpItemKindReference = { fg = c.magenta, bg = c.none }, -- CmpItemKindReference = { fg = c.magenta, bg = c.none },
-- CmpItemKindValue = { fg = c.magenta, bg = c.none }, -- CmpItemKindValue = { fg = c.magenta, bg = c.none },
-- CmpItemKindFunction = { fg = c.blue, bg = c.none }, -- CmpItemKindFunction = { fg = c.blue, bg = c.none },
-- CmpItemKindMethod = { fg = c.blue, bg = c.none }, -- CmpItemKindMethod = { fg = c.blue, bg = c.none },
-- CmpItemKindConstructor = { fg = c.blue, bg = c.none }, -- CmpItemKindConstructor = { fg = c.blue, bg = c.none },
-- CmpItemKindClass = { fg = c.orange, bg = c.none }, -- CmpItemKindClass = { fg = c.orange, bg = c.none },
-- CmpItemKindInterface = { fg = c.orange, bg = c.none }, -- CmpItemKindInterface = { fg = c.orange, bg = c.none },
-- CmpItemKindStruct = { fg = c.orange, bg = c.none }, -- CmpItemKindStruct = { fg = c.orange, bg = c.none },
-- CmpItemKindEvent = { fg = c.orange, bg = c.none }, -- CmpItemKindEvent = { fg = c.orange, bg = c.none },
-- CmpItemKindEnum = { fg = c.orange, bg = c.none }, -- CmpItemKindEnum = { fg = c.orange, bg = c.none },
-- CmpItemKindUnit = { fg = c.orange, bg = c.none }, -- CmpItemKindUnit = { fg = c.orange, bg = c.none },
-- CmpItemKindModule = { fg = c.yellow, bg = c.none }, -- CmpItemKindModule = { fg = c.yellow, bg = c.none },
-- CmpItemKindProperty = { fg = c.green1, bg = c.none }, -- CmpItemKindProperty = { fg = c.green1, bg = c.none },
-- CmpItemKindField = { fg = c.green1, bg = c.none }, -- CmpItemKindField = { fg = c.green1, bg = c.none },
-- CmpItemKindTypeParameter = { fg = c.green1, bg = c.none }, -- CmpItemKindTypeParameter = { fg = c.green1, bg = c.none },
-- CmpItemKindEnumMember = { fg = c.green1, bg = c.none }, -- CmpItemKindEnumMember = { fg = c.green1, bg = c.none },
-- CmpItemKindOperator = { fg = c.green1, bg = c.none }, -- CmpItemKindOperator = { fg = c.green1, bg = c.none },
-- CmpItemKindSnippet = { fg = c.dark5, bg = c.none }, -- CmpItemKindSnippet = { fg = c.dark5, bg = c.none },
} }
return M return M

View File

@ -2,30 +2,29 @@ local M = {}
---@class Palette ---@class Palette
M.default = { M.default = {
none = "NONE", none = "NONE",
fg = "#e4e4e4", fg = "#e4e4e4",
["fg+1"] = "#f4f4ff", ["fg+1"] = "#f4f4ff",
["fg+2"] = "#f5f5f5", ["fg+2"] = "#f5f5f5",
white = "#ffffff", white = "#ffffff",
black = "#000000", black = "#000000",
["bg-1"] = "#101010", ["bg-1"] = "#101010",
bg = "#181818", bg = "#181818",
["bg+1"] = "#282828", ["bg+1"] = "#282828",
["bg+2"] = "#453d41", ["bg+2"] = "#453d41",
["bg+3"] = "#484848", ["bg+3"] = "#484848",
["bg+4"] = "#52494e", ["bg+4"] = "#52494e",
["red-1"] = "#c73c3f", ["red-1"] = "#c73c3f",
red = "#f43841", red = "#f43841",
["red+1"] = "#ff4f58", ["red+1"] = "#ff4f58",
green = "#73d936", green = "#73d936",
yellow = "#ffdd33", yellow = "#ffdd33",
brown = "#cc8c3c", brown = "#cc8c3c",
quartz = "#95a99f", quartz = "#95a99f",
["niagara-2"] = "#303540", ["niagara-2"] = "#303540",
["niagara-1"] = "#565f73", ["niagara-1"] = "#565f73",
niagara = "#96a6c8", niagara = "#96a6c8",
wisteria = "#9e95c7", wisteria = "#9e95c7",
} }
return M return M