dev (formatter): formatted with StyLua core/integrations/*

dev-doc
Pocco81 3 years ago
parent e3503f0d7d
commit 58e9348dfb

@ -3,25 +3,25 @@ local util = require("catppuccino.utils.util")
local M = {} local M = {}
function M.get(cpt) function M.get(cpt)
return { return {
BufferCurrent = {bg = cpt.fg_gutter, fg = cpt.fg}, BufferCurrent = { bg = cpt.fg_gutter, fg = cpt.fg },
BufferCurrentIndex = {bg = cpt.fg_gutter, fg = cpt.info}, BufferCurrentIndex = { bg = cpt.fg_gutter, fg = cpt.info },
BufferCurrentMod = {bg = cpt.fg_gutter, fg = cpt.warning}, BufferCurrentMod = { bg = cpt.fg_gutter, fg = cpt.warning },
BufferCurrentSign = {bg = cpt.fg_gutter, fg = cpt.info}, BufferCurrentSign = { bg = cpt.fg_gutter, fg = cpt.info },
BufferCurrentTarget = {bg = cpt.fg_gutter, fg = cpt.red}, BufferCurrentTarget = { bg = cpt.fg_gutter, fg = cpt.red },
BufferVisible = {bg = cpt.bg_statusline, fg = cpt.fg}, BufferVisible = { bg = cpt.bg_statusline, fg = cpt.fg },
BufferVisibleIndex = {bg = cpt.bg_statusline, fg = cpt.info}, BufferVisibleIndex = { bg = cpt.bg_statusline, fg = cpt.info },
BufferVisibleMod = {bg = cpt.bg_statusline, fg = cpt.warning}, BufferVisibleMod = { bg = cpt.bg_statusline, fg = cpt.warning },
BufferVisibleSign = {bg = cpt.bg_statusline, fg = cpt.info}, BufferVisibleSign = { bg = cpt.bg_statusline, fg = cpt.info },
BufferVisibleTarget = {bg = cpt.bg_statusline, fg = cpt.red}, BufferVisibleTarget = { bg = cpt.bg_statusline, fg = cpt.red },
BufferInactive = {bg = cpt.bg_statusline, fg = cpt.comment}, BufferInactive = { bg = cpt.bg_statusline, fg = cpt.comment },
BufferInactiveIndex = {bg = cpt.bg_statusline, fg = cpt.comment}, BufferInactiveIndex = { bg = cpt.bg_statusline, fg = cpt.comment },
BufferInactiveMod = {bg = cpt.bg_statusline, fg = util.darken(cpt.warning, 0.7)}, BufferInactiveMod = { bg = cpt.bg_statusline, fg = util.darken(cpt.warning, 0.7) },
BufferInactiveSign = {bg = cpt.bg_statusline, fg = cpt.border_highlight}, BufferInactiveSign = { bg = cpt.bg_statusline, fg = cpt.border_highlight },
BufferInactiveTarget = {bg = cpt.bg_statusline, fg = cpt.red}, BufferInactiveTarget = { bg = cpt.bg_statusline, fg = cpt.red },
BufferTabpages = {bg = cpt.bg_statusline, fg = cpt.none}, BufferTabpages = { bg = cpt.bg_statusline, fg = cpt.none },
BufferTabpage = {bg = cpt.bg_statusline, fg = cpt.border_highlight} BufferTabpage = { bg = cpt.bg_statusline, fg = cpt.border_highlight },
} }
end end
return M return M

@ -3,24 +3,24 @@ local util = require("catppuccino.utils.util")
local M = {} local M = {}
function M.get(cpt) function M.get(cpt)
return { return {
BufferLineFill = {bg = util.brighten(cpt.bg, 0.04)}, BufferLineFill = { bg = util.brighten(cpt.bg, 0.04) },
BufferLineBackground = {fg = cpt.gray, bg = cpt.black}, BufferLineBackground = { fg = cpt.gray, bg = cpt.black },
BufferLineBufferVisible = {fg = cpt.gray, bg = cpt.black}, BufferLineBufferVisible = { fg = cpt.gray, bg = cpt.black },
BufferLineBufferSelected = {fg = cpt.fg, bg = cpt.bg}, BufferLineBufferSelected = { fg = cpt.fg, bg = cpt.bg },
BufferLineTab = {fg = cpt.gray, bg = cpt.bg}, BufferLineTab = { fg = cpt.gray, bg = cpt.bg },
BufferLineTabSelected = {fg = cpt.red, bg = cpt.blue}, BufferLineTabSelected = { fg = cpt.red, bg = cpt.blue },
BufferLineTabClose = {fg = cpt.red, bg = cpt.black}, BufferLineTabClose = { fg = cpt.red, bg = cpt.black },
BufferLineIndicatorSelected = {fg = cpt.bg, bg = cpt.bg}, BufferLineIndicatorSelected = { fg = cpt.bg, bg = cpt.bg },
-- separators -- separators
BufferLineSeparator = {fg = cpt.black, bg = cpt.black}, BufferLineSeparator = { fg = cpt.black, bg = cpt.black },
BufferLineSeparatorVisible = {fg = cpt.black, bg = cpt.black}, BufferLineSeparatorVisible = { fg = cpt.black, bg = cpt.black },
BufferLineSeparatorSelected = {fg = cpt.black, bg = cpt.black}, BufferLineSeparatorSelected = { fg = cpt.black, bg = cpt.black },
-- close buttons -- close buttons
BufferLineCloseButton = {fg = cpt.gray, bg = cpt.black}, BufferLineCloseButton = { fg = cpt.gray, bg = cpt.black },
BufferLineCloseButtonVisible = {fg = cpt.gray, bg = cpt.black}, BufferLineCloseButtonVisible = { fg = cpt.gray, bg = cpt.black },
BufferLineCloseButtonSelected = {fg = cpt.red, bg = cpt.bg} BufferLineCloseButtonSelected = { fg = cpt.red, bg = cpt.bg },
} }
end end
return M return M

@ -1,12 +1,12 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cpt)
return { return {
DashboardShortCut = {fg = cpt.cyan}, DashboardShortCut = { fg = cpt.cyan },
DashboardHeader = {fg = cpt.yellow}, DashboardHeader = { fg = cpt.yellow },
DashboardCenter = {fg = cpt.green}, DashboardCenter = { fg = cpt.green },
DashboardFooter = {fg = cpt.orange, style = "italic"} DashboardFooter = { fg = cpt.orange, style = "italic" },
} }
end end
return M return M

@ -1,9 +1,9 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cpt)
return { return {
FernBranchText = {fg = cpt.blue} FernBranchText = { fg = cpt.blue },
} }
end end
return M return M

@ -1,10 +1,10 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cpt)
return { return {
GitGutterAdd = {fg = cpt.gitSigns.add}, -- diff mode: Added line |diff.txt| GitGutterAdd = { fg = cpt.gitSigns.add }, -- diff mode: Added line |diff.txt|
GitGutterChange = {fg = cpt.gitSigns.change}, -- diff mode: Changed line |diff.txt| GitGutterChange = { fg = cpt.gitSigns.change }, -- diff mode: Changed line |diff.txt|
GitGutterDelete = {fg = cpt.gitSigns.delete} -- diff mode: Deleted line |diff.txt| GitGutterDelete = { fg = cpt.gitSigns.delete }, -- diff mode: Deleted line |diff.txt|
} }
end end
return M return M

@ -1,11 +1,11 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cpt)
return { return {
GitSignsAdd = {fg = cpt.diff.add, bg = cpt.bg}, -- diff mode: Added line |diff.txt| GitSignsAdd = { fg = cpt.diff.add, bg = cpt.bg }, -- diff mode: Added line |diff.txt|
GitSignsChange = {fg = cpt.diff.change, bg = cpt.bg}, -- diff mode: Changed line |diff.txt| GitSignsChange = { fg = cpt.diff.change, bg = cpt.bg }, -- diff mode: Changed line |diff.txt|
GitSignsDelete = {fg = cpt.diff.delete, bg = cpt.bg} -- diff mode: Deleted line |diff.txt| GitSignsDelete = { fg = cpt.diff.delete, bg = cpt.bg }, -- diff mode: Deleted line |diff.txt|
} }
end end
return M return M

@ -1,9 +1,9 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cpt)
return { return {
IndentBlanklineChar = {fg = cpt.gray} IndentBlanklineChar = { fg = cpt.gray },
} }
end end
return M return M

@ -1,27 +1,27 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cpt)
return { return {
DiagnosticError = {fg = cpt.error}, DiagnosticError = { fg = cpt.error },
DiagnosticWarning = {fg = cpt.warning}, DiagnosticWarning = { fg = cpt.warning },
DiagnosticInformation = {fg = cpt.info}, DiagnosticInformation = { fg = cpt.info },
DiagnosticHint = {fg = cpt.hint}, DiagnosticHint = { fg = cpt.hint },
LspFloatWinNormal = {bg = cpt.bg_float}, LspFloatWinNormal = { bg = cpt.bg_float },
LspFloatWinBorder = {fg = cpt.border_highlight}, LspFloatWinBorder = { fg = cpt.border_highlight },
LspSagaBorderTitle = {fg = cpt.cyan}, LspSagaBorderTitle = { fg = cpt.cyan },
LspSagaHoverBorder = {fg = cpt.blue}, LspSagaHoverBorder = { fg = cpt.blue },
LspSagaRenameBorder = {fg = cpt.green}, LspSagaRenameBorder = { fg = cpt.green },
LspSagaDefPreviewBorder = {fg = cpt.green}, LspSagaDefPreviewBorder = { fg = cpt.green },
LspSagaCodeActionBorder = {fg = cpt.blue}, LspSagaCodeActionBorder = { fg = cpt.blue },
LspSagaFinderSelection = {fg = cpt.bg_visual}, LspSagaFinderSelection = { fg = cpt.bg_visual },
LspSagaCodeActionTitle = {fg = cpt.blue1}, LspSagaCodeActionTitle = { fg = cpt.blue1 },
LspSagaCodeActionContent = {fg = cpt.purple}, LspSagaCodeActionContent = { fg = cpt.purple },
LspSagaSignatureHelpBorder = {fg = cpt.red}, LspSagaSignatureHelpBorder = { fg = cpt.red },
ReferencesCount = {fg = cpt.purple}, ReferencesCount = { fg = cpt.purple },
DefinitionCount = {fg = cpt.purple}, DefinitionCount = { fg = cpt.purple },
DefinitionIcon = {fg = cpt.blue}, DefinitionIcon = { fg = cpt.blue },
ReferencesIcon = {fg = cpt.blue}, ReferencesIcon = { fg = cpt.blue },
TargetWord = {fg = cpt.cyan} TargetWord = { fg = cpt.cyan },
} }
end end
return M return M

@ -1,11 +1,11 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cpt)
return { return {
LspTroubleText = {fg = cpt.fg_alt}, LspTroubleText = { fg = cpt.fg_alt },
LspTroubleCount = {fg = cpt.magenta, bg = cpt.fg_gutter}, LspTroubleCount = { fg = cpt.magenta, bg = cpt.fg_gutter },
LspTroubleNormal = {fg = cpt.fg_sidebar, bg = cpt.bg_sidebar} LspTroubleNormal = { fg = cpt.fg_sidebar, bg = cpt.bg_sidebar },
} }
end end
return M return M

@ -1,14 +1,14 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cpt)
return { return {
markdownHeadingDelimiter = {fg = cpt.orange, style = "bold"}, markdownHeadingDelimiter = { fg = cpt.orange, style = "bold" },
markdownCode = {fg = cpt.cyan}, markdownCode = { fg = cpt.cyan },
markdownCodeBlock = {fg = cpt.cyan}, markdownCodeBlock = { fg = cpt.cyan },
markdownH1 = {fg = cpt.magenta, style = "bold"}, markdownH1 = { fg = cpt.magenta, style = "bold" },
markdownH2 = {fg = cpt.blue, style = "bold"}, markdownH2 = { fg = cpt.blue, style = "bold" },
markdownLinkText = {fg = cpt.blue, style = "underline"} markdownLinkText = { fg = cpt.blue, style = "underline" },
} }
end end
return M return M

@ -1,38 +1,38 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cpt)
return { return {
-- These groups are for the native LSP cliencpt. Some other LSP clients may -- These groups are for the native LSP cliencpt. Some other LSP clients may
-- use these groups, or use their own. Consult your LSP client's -- use these groups, or use their own. Consult your LSP client's
-- documentation. -- documentation.
LspReferenceText = {bg = cpt.fg_gutter}, -- used for highlighting "text" references LspReferenceText = { bg = cpt.fg_gutter }, -- used for highlighting "text" references
LspReferenceRead = {bg = cpt.fg_gutter}, -- used for highlighting "read" references LspReferenceRead = { bg = cpt.fg_gutter }, -- used for highlighting "read" references
LspReferenceWrite = {bg = cpt.fg_gutter}, -- used for highlighting "write" references LspReferenceWrite = { bg = cpt.fg_gutter }, -- used for highlighting "write" references
-- hightlight diagnostics in numberline -- hightlight diagnostics in numberline
LspDiagnosticsDefaultError = {fg = cpt.error}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) LspDiagnosticsDefaultError = { fg = cpt.error }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsDefaultWarning = {fg = cpt.warning}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) LspDiagnosticsDefaultWarning = { fg = cpt.warning }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsDefaultInformation = {fg = cpt.info}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) LspDiagnosticsDefaultInformation = { fg = cpt.info }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsDefaultHint = {fg = cpt.hint}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) LspDiagnosticsDefaultHint = { fg = cpt.hint }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspSignatureActiveParameter = {fg = cpt.orange}, LspSignatureActiveParameter = { fg = cpt.orange },
-- LspDiagnosticsFloatingError = { }, -- Used to color "Error" diagnostic messages in diagnostics float -- LspDiagnosticsFloatingError = { }, -- Used to color "Error" diagnostic messages in diagnostics float
-- LspDiagnosticsFloatingWarning = { }, -- Used to color "Warning" diagnostic messages in diagnostics float -- LspDiagnosticsFloatingWarning = { }, -- Used to color "Warning" diagnostic messages in diagnostics float
-- LspDiagnosticsFloatingInformation = { }, -- Used to color "Information" diagnostic messages in diagnostics float -- LspDiagnosticsFloatingInformation = { }, -- Used to color "Information" diagnostic messages in diagnostics float
-- LspDiagnosticsFloatingHint = { }, -- Used to color "Hint" diagnostic messages in diagnostics float -- LspDiagnosticsFloatingHint = { }, -- Used to color "Hint" diagnostic messages in diagnostics float
LspDiagnosticsError = {fg = cpt.error}, LspDiagnosticsError = { fg = cpt.error },
LspDiagnosticsWarning = {fg = cpt.warning}, LspDiagnosticsWarning = { fg = cpt.warning },
LspDiagnosticsInformation = {fg = cpt.info}, LspDiagnosticsInformation = { fg = cpt.info },
LspDiagnosticsHint = {fg = cpt.hint}, LspDiagnosticsHint = { fg = cpt.hint },
LspDiagnosticsVirtualTextError = {fg = cpt.error, style = cpc.integrations.native_lsp.styles.errors}, -- Used for "Error" diagnostic virtual text LspDiagnosticsVirtualTextError = { fg = cpt.error, style = cpc.integrations.native_lsp.styles.errors }, -- Used for "Error" diagnostic virtual text
LspDiagnosticsVirtualTextWarning = {fg = cpt.warning, style = cpc.integrations.native_lsp.styles.warnings}, -- Used for "Warning" diagnostic virtual text LspDiagnosticsVirtualTextWarning = { fg = cpt.warning, style = cpc.integrations.native_lsp.styles.warnings }, -- Used for "Warning" diagnostic virtual text
LspDiagnosticsVirtualTextInformation = {fg = cpt.info, style = cpc.integrations.native_lsp.styles.information}, -- Used for "Information" diagnostic virtual text LspDiagnosticsVirtualTextInformation = { fg = cpt.info, style = cpc.integrations.native_lsp.styles.information }, -- Used for "Information" diagnostic virtual text
LspDiagnosticsVirtualTextHint = {fg = cpt.hint, style = cpc.integrations.native_lsp.styles.hints}, -- Used for "Hint" diagnostic virtual text LspDiagnosticsVirtualTextHint = { fg = cpt.hint, style = cpc.integrations.native_lsp.styles.hints }, -- Used for "Hint" diagnostic virtual text
LspDiagnosticsUnderlineError = {style = "underline", sp = cpt.error}, -- Used to underline "Error" diagnostics LspDiagnosticsUnderlineError = { style = "underline", sp = cpt.error }, -- Used to underline "Error" diagnostics
LspDiagnosticsUnderlineWarning = {style = "underline", sp = cpt.warning}, -- Used to underline "Warning" diagnostics LspDiagnosticsUnderlineWarning = { style = "underline", sp = cpt.warning }, -- Used to underline "Warning" diagnostics
LspDiagnosticsUnderlineInformation = {style = "underline", sp = cpt.info}, -- Used to underline "Information" diagnostics LspDiagnosticsUnderlineInformation = { style = "underline", sp = cpt.info }, -- Used to underline "Information" diagnostics
LspDiagnosticsUnderlineHint = {style = "underline", sp = cpt.hint}, -- Used to underline "Hint" diagnostics LspDiagnosticsUnderlineHint = { style = "underline", sp = cpt.hint }, -- Used to underline "Hint" diagnostics
LspCodeLens = {fg = cpt.comment} -- virtual text of the codelens LspCodeLens = { fg = cpt.comment }, -- virtual text of the codelens
} }
end end
return M return M

@ -2,15 +2,15 @@ local util = require("catppuccino.utils.util")
local M = {} local M = {}
function M.get(cpt) function M.get(cpt)
return { return {
NeogitBranch = {fg = cpt.magenta}, NeogitBranch = { fg = cpt.magenta },
NeogitRemote = {fg = cpt.pink}, NeogitRemote = { fg = cpt.pink },
NeogitHunkHeader = {bg = cpt.bg_highlight, fg = cpt.fg}, NeogitHunkHeader = { bg = cpt.bg_highlight, fg = cpt.fg },
NeogitHunkHeaderHighlight = {bg = cpt.fg_gutter, fg = cpt.blue}, NeogitHunkHeaderHighlight = { bg = cpt.fg_gutter, fg = cpt.blue },
NeogitDiffContextHighlight = {bg = util.darken(cpt.fg_gutter, 0.5), fg = cpt.fg_alt}, NeogitDiffContextHighlight = { bg = util.darken(cpt.fg_gutter, 0.5), fg = cpt.fg_alt },
NeogitDiffDeleteHighlight = {fg = cpt.git.delete, bg = cpt.diff.delete}, NeogitDiffDeleteHighlight = { fg = cpt.git.delete, bg = cpt.diff.delete },
NeogitDiffAddHighlight = {fg = cpt.git.add, bg = cpt.diff.add} NeogitDiffAddHighlight = { fg = cpt.git.add, bg = cpt.diff.add },
} }
end end
return M return M

@ -1,32 +1,32 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cpt)
local config = require("catppuccino.config").options local config = require("catppuccino.config").options
local root_dir_color = cpt.bg_sidebar local root_dir_color = cpt.bg_sidebar
if (config.integrations.nvimtree.show_root) then if config.integrations.nvimtree.show_root then
root_dir_color = cpt.blue root_dir_color = cpt.blue
end end
return { return {
NvimTreeFolderName = {fg = cpt.blue}, NvimTreeFolderName = { fg = cpt.blue },
NvimTreeFolderIcon = {fg = cpt.blue}, NvimTreeFolderIcon = { fg = cpt.blue },
NvimTreeNormal = {fg = cpt.fg, bg = cpt.bg_sidebar}, NvimTreeNormal = { fg = cpt.fg, bg = cpt.bg_sidebar },
NvimTreeOpenedFolderName = {fg = cpt.blue}, NvimTreeOpenedFolderName = { fg = cpt.blue },
NvimTreeEmptyFolderName = {fg = cpt.blue_br}, NvimTreeEmptyFolderName = { fg = cpt.blue_br },
NvimTreeIndentMarker = {fg = cpt.comment}, NvimTreeIndentMarker = { fg = cpt.comment },
NvimTreeVertSplit = {fg = cpt.black, bg = cpt.black}, NvimTreeVertSplit = { fg = cpt.black, bg = cpt.black },
NvimTreeRootFolder = {fg = root_dir_color, style = "bold"}, NvimTreeRootFolder = { fg = root_dir_color, style = "bold" },
NvimTreeSymlink = {fg = cpt.magenta}, NvimTreeSymlink = { fg = cpt.magenta },
NvimTreeStatuslineNc = {fg = cpt.black, bg = cpt.black}, NvimTreeStatuslineNc = { fg = cpt.black, bg = cpt.black },
NvimTreeGitDirty = {fg = cpt.git.change}, NvimTreeGitDirty = { fg = cpt.git.change },
NvimTreeGitNew = {fg = cpt.git.add}, NvimTreeGitNew = { fg = cpt.git.add },
NvimTreeGitDeleted = {fg = cpt.git.delete}, NvimTreeGitDeleted = { fg = cpt.git.delete },
NvimTreeSpecialFile = {fg = cpt.cyan}, NvimTreeSpecialFile = { fg = cpt.cyan },
NvimTreeImageFile = {fg = cpt.fg_sidebar}, NvimTreeImageFile = { fg = cpt.fg_sidebar },
NvimTreeOpenedFile = {fg = cpt.magenta} NvimTreeOpenedFile = { fg = cpt.magenta },
} }
end end
return M return M

@ -1,12 +1,12 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cpt)
return { return {
TelescopeBorder = {fg = cpt.border_highlight}, TelescopeBorder = { fg = cpt.border_highlight },
TelescopeSelectionCaret = {fg = cpt.cyan}, TelescopeSelectionCaret = { fg = cpt.cyan },
TelescopeSelection = {fg = cpt.cyan, bg = cpt.bg_highlight}, TelescopeSelection = { fg = cpt.cyan, bg = cpt.bg_highlight },
TelescopeMatching = {fg = cpt.blue} TelescopeMatching = { fg = cpt.blue },
} }
end end
return M return M

@ -14,51 +14,51 @@ function M.get(cpt)
-- TSBoolean = { }; -- For booleans. -- TSBoolean = { }; -- For booleans.
-- TSCharacter = { }; -- For characters. -- TSCharacter = { }; -- For characters.
-- TSComment = { }; -- For comment blocks. -- TSComment = { }; -- For comment blocks.
TSNote = {fg = cpt.bg, bg = cpt.info}, TSNote = { fg = cpt.bg, bg = cpt.info },
TSWarning = {fg = cpt.bg, bg = cpt.warning}, TSWarning = { fg = cpt.bg, bg = cpt.warning },
TSDanger = {fg = cpt.bg, bg = cpt.error}, TSDanger = { fg = cpt.bg, bg = cpt.error },
TSConstructor = {fg = cpt.magenta}, -- For constructor calls and definitions: `= { }` in Lua, and Java constructors. TSConstructor = { fg = cpt.magenta }, -- For constructor calls and definitions: `= { }` in Lua, and Java constructors.
-- TSConditional = { }; -- For keywords related to conditionnals. -- TSConditional = { }; -- For keywords related to conditionnals.
TSConstant = {fg = cpt.orange}, -- For constants TSConstant = { fg = cpt.orange }, -- For constants
TSConstBuiltin = {fg = cpt.orange_br}, -- For constant that are built in the language: `nil` in Lua. TSConstBuiltin = { fg = cpt.orange_br }, -- For constant that are built in the language: `nil` in Lua.
-- TSConstMacro = { }; -- For constants that are defined by macros: `NULL` in cpt. -- TSConstMacro = { }; -- For constants that are defined by macros: `NULL` in cpt.
-- TSError = { }; -- For syntax/parser errors. -- TSError = { }; -- For syntax/parser errors.
-- TSException = { }; -- For exception related keywords. -- TSException = { }; -- For exception related keywords.
TSField = {fg = cpt.red}, -- For fields. TSField = { fg = cpt.red }, -- For fields.
rustTSField = {fg = util.darken(cpt.white, 0.75)}, -- For fields. rustTSField = { fg = util.darken(cpt.white, 0.75) }, -- For fields.
-- TSFloat = { }; -- For floats. -- TSFloat = { }; -- For floats.
-- TSFunction = { fg = cpt.fg_gutter }, -- For function (calls and definitions). -- TSFunction = { fg = cpt.fg_gutter }, -- For function (calls and definitions).
TSFuncBuiltin = {fg = cpt.cyan}, -- For builtin functions: `table.insert` in Lua. TSFuncBuiltin = { fg = cpt.cyan }, -- For builtin functions: `table.insert` in Lua.
TSFuncMacro = {fg = cpt.red}, -- For macro defined functions (calls and definitions): each `macro_rules` in Ruscpt. TSFuncMacro = { fg = cpt.red }, -- For macro defined functions (calls and definitions): each `macro_rules` in Ruscpt.
-- 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.
TSKeyword = {fg = cpt.magenta, style = cpc.styles.keywords}, -- For keywords that don't fall in previous categories. TSKeyword = { fg = cpt.magenta, style = cpc.styles.keywords }, -- For keywords that don't fall in previous categories.
TSKeywordFunction = {fg = cpt.magenta, style = cpc.styles.functions}, -- For keywords used to define a fuction. TSKeywordFunction = { fg = cpt.magenta, style = cpc.styles.functions }, -- For keywords used to define a fuction.
TSLabel = {fg = cpt.blue}, -- For labels: `label:` in C and `:label:` in Lua. TSLabel = { fg = cpt.blue }, -- For labels: `label:` in C and `:label:` in Lua.
-- TSMethod = { }; -- For method calls and definitions. -- TSMethod = { }; -- For method calls and definitions.
TSNamespace = {fg = cpt.cyan}, -- For identifiers referring to modules and namespaces. TSNamespace = { fg = cpt.cyan }, -- For identifiers referring to modules and namespaces.
-- TSNone = { }; -- TODO: docs -- TSNone = { }; -- TODO: docs
-- TSNumber = { }; -- For all numbers -- TSNumber = { }; -- For all numbers
TSOperator = {fg = cpt.fg}, -- For any operator: `+`, but also `->` and `*` in cpt. TSOperator = { fg = cpt.fg }, -- For any operator: `+`, but also `->` and `*` in cpt.
TSParameter = {fg = cpt.orange_br}, -- For parameters of a function. TSParameter = { fg = cpt.orange_br }, -- For parameters of a function.
-- TSParameterReference= { }; -- For references to parameters of a function. -- TSParameterReference= { }; -- For references to parameters of a function.
TSProperty = {fg = cpt.red_br}, -- Same as `TSField`. TSProperty = { fg = cpt.red_br }, -- Same as `TSField`.
tomlTSProperty = {fg = cpt.blue}, -- Differentiates between string and properties tomlTSProperty = { fg = cpt.blue }, -- Differentiates between string and properties
TSPunctDelimiter = {fg = util.string_to_color(cpt, "", cpt.fg_alt)}, -- For delimiters ie: `.` TSPunctDelimiter = { fg = util.string_to_color(cpt, "", cpt.fg_alt) }, -- For delimiters ie: `.`
TSPunctBracket = {fg = cpt.red}, -- For brackets and parenthesis. TSPunctBracket = { fg = cpt.red }, -- For brackets and parenthesis.
TSPunctSpecial = {fg = cpt.white}, -- For special punctutation that does not fall in the catagories before. TSPunctSpecial = { fg = cpt.white }, -- For special punctutation that does not fall in the catagories before.
-- TSRepeat = { }; -- For keywords related to loops. -- TSRepeat = { }; -- For keywords related to loops.
-- TSString = { }; -- For strings. -- TSString = { }; -- For strings.
TSStringRegex = {fg = cpt.blue, style = cpc.styles.strings}, -- For regexes. TSStringRegex = { fg = cpt.blue, style = cpc.styles.strings }, -- For regexes.
TSStringEscape = {fg = cpt.magenta, style = cpc.styles.strings}, -- For escape characters within a string. TSStringEscape = { fg = cpt.magenta, style = cpc.styles.strings }, -- For escape characters within a string.
-- TSSymbol = { }; -- For identifiers referring to symbols or atoms. -- TSSymbol = { }; -- For identifiers referring to symbols or atoms.
-- TSType = { }; -- For types. -- TSType = { }; -- For types.
TSTypeBuiltin = {fg = cpt.cyan}, -- For builtin types. TSTypeBuiltin = { fg = cpt.cyan }, -- For builtin types.
TSVariable = {style = cpc.styles.variables}, -- Any variable name that does not have another highlighcpt. TSVariable = { style = cpc.styles.variables }, -- Any variable name that does not have another highlighcpt.
TSVariableBuiltin = {fg = cpt.red}, -- Variable names that are defined by the languages, like `this` or `self`. TSVariableBuiltin = { fg = cpt.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.
TSTextReference = {fg = cpt.cyan} TSTextReference = { fg = cpt.cyan },
-- 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 texcpt. -- TSStrike = { }; -- For strikethrough texcpt.
@ -69,4 +69,3 @@ function M.get(cpt)
end end
return M return M

@ -1,10 +1,10 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cpt)
return { return {
Sneak = {fg = cpt.bg_highlight, bg = cpt.magenta}, Sneak = { fg = cpt.bg_highlight, bg = cpt.magenta },
SneakScope = {bg = cpt.bg_visual} SneakScope = { bg = cpt.bg_visual },
} }
end end
return M return M

@ -1,15 +1,15 @@
local M = {} local M = {}
function M.get(cpt) function M.get(cpt)
return { return {
WhichKey = {fg = cpt.cyan}, WhichKey = { fg = cpt.cyan },
WhichKeyGroup = {fg = cpt.blue}, WhichKeyGroup = { fg = cpt.blue },
WhichKeyDesc = {fg = cpt.magenta}, WhichKeyDesc = { fg = cpt.magenta },
WhichKeySeperator = {fg = cpt.comment}, WhichKeySeperator = { fg = cpt.comment },
WhichKeySeparator = {fg = cpt.comment}, WhichKeySeparator = { fg = cpt.comment },
WhichKeyFloat = {bg = cpt.bg_sidebar}, WhichKeyFloat = { bg = cpt.bg_sidebar },
WhichKeyValue = {fg = cpt.comment} WhichKeyValue = { fg = cpt.comment },
} }
end end
return M return M

Loading…
Cancel
Save