New version: created v3

This commit is contained in:
Keyitdev
2022-07-23 15:08:47 +02:00
parent eb3bdd5962
commit a2d46e7b94
551 changed files with 103679 additions and 4704 deletions
+89
View File
@@ -0,0 +1,89 @@
local base = {
Normal = { fg = C.fg, bg = C.bg },
Comment = { fg = C.grey_2, bg = C.none },
Constant = { fg = C.yellow, bg = C.none },
String = { fg = C.green, bg = C.none },
Character = { fg = C.green, bg = C.none },
Number = { fg = C.orange, bg = C.none },
Boolean = { fg = C.blue, bg = C.none },
Float = { fg = C.yellow, bg = C.none },
Identifier = { fg = C.blue, bg = C.none },
Function = { fg = C.yellow, bg = C.none },
Statement = { fg = C.purple, bg = C.none },
Conditional = { fg = C.purple_1, bg = C.none },
Repeat = { fg = C.purple, bg = C.none },
Label = { fg = C.blue, bg = C.none },
Operator = { fg = C.purple, bg = C.none },
Keyword = { fg = C.purple, bg = C.none },
Exception = { fg = C.purple, bg = C.none },
Preproc = { fg = C.yellow, bg = C.none },
Include = { fg = C.purple, bg = C.none },
Define = { fg = C.purple, bg = C.none },
Title = { fg = C.cyan, bg = C.none },
Macro = { fg = C.purple, bg = C.none },
PreCondit = { fg = C.blue, bg = C.none },
Type = { fg = C.blue, bg = C.none },
StorageClass = { fg = C.blue, bg = C.none },
Structure = { fg = C.yellow, bg = C.none },
Typedef = { fg = C.yellow, bg = C.none },
Special = { fg = C.blue, bg = C.none },
SpecialComment = { fg = C.grey, bg = C.none },
Error = { fg = C.red, bg = C.none },
Todo = { fg = C.purple, bg = C.none },
Underlined = { fg = C.cyan, bg = C.none },
Cursor = { fg = C.none, bg = C.none },
ColorColumn = { fg = C.none, bg = C.grey_4 },
CursorLineNr = { fg = C.fg, bg = C.none },
Conceal = { fg = C.grey, bg = C.none },
CursorColumn = { fg = C.none, bg = C.grey_4 },
CursorLine = { fg = C.none, bg = C.grey_8 },
Directory = { fg = C.blue, bg = C.none },
DiffAdd = { fg = C.grey_3, bg = C.green },
DiffChange = { fg = C.yellow, bg = C.none },
DiffDelete = { fg = C.grey_3, bg = C.red },
DiffText = { fg = C.grey_3, bg = C.yellow },
ErrorMsg = { fg = C.red, bg = C.none },
VertSplit = { fg = C.black, bg = C.none },
Folded = { fg = C.grey, bg = C.none },
FoldColumn = { fg = C.none, bg = C.none },
IncSearch = { fg = C.yellow, bg = C.grey },
LineNr = { fg = C.grey_1, bg = C.none },
NonText = { fg = C.grey_1, bg = C.none },
Pmenu = { fg = C.fg, bg = C.black_1 },
PmenuSel = { fg = C.none, bg = C.grey_4 },
PmenuSbar = { fg = C.none, bg = C.grey_3 },
PmenuThumb = { fg = C.none, bg = C.fg },
Question = { fg = C.purple, bg = C.none },
QuickFixLine = { fg = C.grey_3, bg = C.yellow },
Search = { fg = C.grey_3, bg = C.yellow },
SignColumn = { fg = C.none, bg = C.none },
SpecialKey = { fg = C.grey_1, bg = C.none },
SpellBad = { fg = C.red, bg = C.none },
SpellCap = { fg = C.yellow, bg = C.none },
SpellLocal = { fg = C.yellow, bg = C.none },
SpellRare = { fg = C.yellow, bg = C.none },
StatusLine = { fg = C.fg, bg = C.grey_4 },
StatusLineNC = { fg = C.grey, bg = C.none },
StatusLineTerm = { fg = C.fg, bg = C.grey_4 },
StatusLineTermNC = { fg = C.grey_4, bg = C.none },
TabLine = { fg = C.grey, bg = C.none },
TabLineSel = { fg = C.fg, bg = C.none },
TabLineFill = { fg = C.none, bg = C.grey_3 },
Terminal = { fg = C.fg, bg = C.grey_3 },
Visual = { fg = C.none, bg = C.grey_5 },
VisualNOS = { fg = C.grey_5, bg = C.none },
WarningMsg = { fg = C.yellow, bg = C.none },
WildMenu = { fg = C.grey_3, bg = C.blue },
EndOfBuffer = { fg = C.bg, bg = C.none },
CmpItemAbbrDefault = { fg = C.fg },
CmpItemAbbrDeprecatedDefault = { fg = C.grey_2 },
CmpItemAbbrMatchDefault = { fg = C.white },
CmpItemAbbrMatchFuzzyDefault = { fg = C.white },
CmpItemKind = { fg = C.yellow },
CmpItemAbbr = { fg = C.fg },
CmpItemMenuDefault = { fg = C.fg },
FloatBorder = { bg = C.none },
MatchParen = { fg = C.none, bg = C.grey_5 },
}
return base
+76
View File
@@ -0,0 +1,76 @@
local colors = {
none = "NONE",
fg = "#abb2bf",
bg = "",
bg_1 = "#303742",
black = "#181a1f",
black_1 = "#1f1f25",
green = "#98c379",
green_1 = "#89b06d",
green_2 = "#95be76",
white = "#dedede",
white_1 = "#afb2bb",
white_2 = "#c9c9c9",
blue = "#61afef",
blue_1 = "#40d9ff",
blue_2 = "#1b1f27",
blue_3 = "#8094B4",
orange = "#d19a66",
orange_1 = "#ff9640",
orange_2 = "#ff8800",
yellow = "#e5c07b",
yellow_1 = "#ebae34",
yellow_2 = "#d1b071",
red = "#e06c75",
red_1 = "#ec5f67",
red_2 = "#ffbba6",
red_3 = "#cc626a",
red_4 = "#d47d85",
grey = "#5c6370",
grey_1 = "#4b5263",
grey_2 = "#777d86",
grey_3 = "#282c34",
grey_4 = "#2c323c",
grey_5 = "#3e4452",
grey_6 = "#3b4048",
grey_7 = "#5c5c5c",
grey_8 = "#252931",
grey_9 = "#787e87",
grey_10 = "#D3D3D3",
gold = "#ffcc00",
cyan = "#56b6c2",
purple = "#c678dd",
purple_1 = "#a9a1e1",
-- icon colors
c = "#519aba",
css = "#61afef",
deb = "#a1b7ee",
docker = "#384d54",
html = "#de8c92",
jpeg = "#c882e7",
jpg = "#c882e7",
js = "#ebcb8b",
jsx = "#519ab8",
kt = "#7bc99c",
lock = "#c4c720",
lua = "#51a0cf",
mp3 = "#d39ede",
mp4 = "#9ea3de",
out = "#abb2bf",
png = "#c882e7",
py = "#a3b8ef",
rb = "#ff75a0",
robots = "#abb2bf",
rpm = "#fca2aa",
rs = "#dea584",
toml = "#39bf39",
ts = "#519aba",
ttf = "#abb2bf",
vue = "#7bc99c",
woff = "#abb2bf",
woff2 = "#abb2bf",
zip = "#f9d71c",
}
return astronvim.user_plugin_opts("default_theme.colors", colors)
+49
View File
@@ -0,0 +1,49 @@
vim.cmd "highlight clear"
if vim.fn.exists "syntax_on" then
vim.cmd "syntax reset"
end
vim.o.background = "dark"
vim.o.termguicolors = true
vim.g.colors_name = "default_theme"
local user_plugin_opts = astronvim.user_plugin_opts
local utils = require "default_theme.utils"
C = require "default_theme.colors"
local highlights = {}
for _, module in ipairs { "base", "treesitter", "lsp" } do
highlights = vim.tbl_deep_extend("force", highlights, require("default_theme." .. module))
end
for plugin, enabled in
pairs(user_plugin_opts("default_theme.plugins", {
aerial = true,
beacon = false,
bufferline = true,
dashboard = true,
gitsigns = true,
highlighturl = true,
hop = false,
indent_blankline = true,
lightspeed = false,
["neo-tree"] = true,
notify = true,
["nvim-tree"] = false,
["nvim-web-devicons"] = true,
rainbow = true,
symbols_outline = false,
telescope = true,
vimwiki = false,
["which-key"] = true,
}))
do
if enabled then
highlights = vim.tbl_deep_extend("force", highlights, require("default_theme.plugins." .. plugin))
end
end
for group, spec in pairs(user_plugin_opts("default_theme.highlights", highlights)) do
vim.api.nvim_set_hl(0, group, utils.parse_style(spec))
end
+26
View File
@@ -0,0 +1,26 @@
local utils = require "default_theme.utils"
local lsp = {
DiagnosticError = utils.parse_diagnostic_style { fg = C.red_1 },
DiagnosticHint = utils.parse_diagnostic_style { fg = C.yellow_1 },
DiagnosticInfo = utils.parse_diagnostic_style { fg = C.white_2 },
DiagnosticWarn = utils.parse_diagnostic_style { fg = C.orange_1 },
DiagnosticInformation = { fg = C.yellow, bold = true },
DiagnosticTruncateLine = { fg = C.white_1, bold = true },
DiagnosticUnderlineError = { sp = C.red_2, undercurl = true },
DiagnosticUnderlineHint = { sp = C.red_2, undercurl = true },
DiagnosticUnderlineInfo = { sp = C.red_2, undercurl = true },
DiagnosticUnderlineWarn = { sp = C.red_2, undercurl = true },
LspDiagnosticsFloatingError = { fg = C.red_1 },
LspDiagnosticsFloatingHint = { fg = C.yellow_1 },
LspDiagnosticsFloatingInfor = { fg = C.white_2 },
LspDiagnosticsFloatingWarn = { fg = C.orange_1 },
LspFloatWinBorder = { fg = C.white_1 },
LspFloatWinNormal = { fg = C.fg, bg = C.black_1 },
LspReferenceRead = { fg = C.none, bg = C.grey_5 },
LspReferenceText = { fg = C.none, bg = C.grey_5 },
LspReferenceWrite = { fg = C.none, bg = C.grey_5 },
ProviderTruncateLine = { fg = C.white_1 },
}
return lsp
@@ -0,0 +1,30 @@
return {
AerialLine = { fg = C.yellow, bg = C.none },
AerialGuide = { fg = C.grey_2 },
AerialBooleanIcon = { link = "TSBoolean" },
AerialClassIcon = { link = "TSType" },
AerialConstantIcon = { link = "TSConstant" },
AerialConstructorIcon = { link = "TSConstructor" },
AerialFieldIcon = { link = "TSField" },
AerialFunctionIcon = { link = "TSFunction" },
AerialMethodIcon = { link = "TSMethod" },
AerialNamespaceIcon = { link = "TSNamespace" },
AerialNumberIcon = { link = "TSNumber" },
AerialOperatorIcon = { link = "TSOperator" },
AerialTypeParameterIcon = { link = "TSParameter" },
AerialPropertyIcon = { link = "TSProperty" },
AerialStringIcon = { link = "TSString" },
AerialVariableIcon = { link = "TSConstant" },
AerialEnumMemberIcon = { link = "TSField" },
AerialEnumIcon = { link = "TSType" },
AerialFileIcon = { link = "TSURI" },
AerialModuleIcon = { link = "TSNamespace" },
AerialPackageIcon = { link = "TSNamespace" },
AerialInterfaceIcon = { link = "TSType" },
AerialStructIcon = { link = "TSType" },
AerialEventIcon = { link = "TSType" },
AerialArrayIcon = { link = "TSConstant" },
AerialObjectIcon = { link = "TSType" },
AerialKeyIcon = { link = "TSType" },
AerialNullIcon = { link = "TSType" },
}
@@ -0,0 +1 @@
return { Beacon = { bg = C.blue } }
@@ -0,0 +1,21 @@
return {
BufferLineFill = { fg = C.grey_9, bg = C.grey_4 },
BufferLineBackground = { fg = C.grey_9, bg = C.grey_4 },
BufferLineBufferVisible = { fg = C.fg, bg = C.bg },
BufferLineBufferSelected = { fg = C.white, bg = C.bg, bold = true },
BufferLineTab = { fg = C.grey_9, bg = C.bg },
BufferLineTabSelected = { fg = C.fg, bg = C.bg },
BufferLineTabClose = { fg = C.red_4, bg = C.bg },
BufferLineIndicatorSelected = { fg = C.bg, bg = C.bg },
BufferLineSeparator = { fg = C.grey_4, bg = C.grey_4 },
BufferLineSeparatorVisible = { fg = C.bg, bg = C.bg },
BufferLineSeparatorSelected = { fg = C.grey_4, bg = C.grey_4 },
BufferLineCloseButton = { fg = C.grey_9, bg = C.grey_4 },
BufferLineCloseButtonVisible = { fg = C.grey_10, bg = C.bg },
BufferLineCloseButtonSelected = { fg = C.red_4, bg = C.bg },
BufferLineModified = { fg = C.red_4, bg = C.grey_4 },
BufferLineModifiedVisible = { fg = C.fg, bg = C.bg },
BufferLineModifiedSelected = { fg = C.green_2, bg = C.bg },
BufferLineError = { fg = C.red_1, bg = C.red_1 },
BufferLineErrorDiagnostic = { fg = C.red_1, bg = C.red_1 },
}
@@ -0,0 +1,6 @@
return {
DashboardHeader = { fg = C.cyan },
DashboardShortcut = { fg = C.yellow },
DashboardFooter = { fg = C.cyan },
DashboardCenter = { fg = C.blue },
}
@@ -0,0 +1,7 @@
return {
GitSignsAdd = { fg = C.green, bg = C.none },
GitSignsChange = { fg = C.orange_1, bg = C.none },
GitSignsDelete = { fg = C.red_1, bg = C.none },
MoreMsg = { fg = C.green, bold = true },
ModeMsg = { fg = C.grey, bold = true },
}
@@ -0,0 +1 @@
return { HighlightURL = { underline = true } }
@@ -0,0 +1,6 @@
return {
HopNextKey = { fg = C.red, bold = true },
HopNextKey1 = { fg = C.cyan, bold = true },
HopNextKey2 = { fg = C.blue },
HopUnmatched = { fg = C.grey },
}
@@ -0,0 +1,7 @@
return {
IndentBlanklineSpaceChar = { fg = C.grey_6, nocombine = true },
IndentBlanklineChar = { fg = C.grey_6, nocombine = true },
IndentBlanklineContextStart = { fg = C.grey_7, underline = true },
IndentBlanklineContextChar = { fg = C.grey_7, nocombine = true },
IndentBlanklineSpaceCharBlankline = { fg = C.grey_6, nocombine = true },
}
@@ -0,0 +1,14 @@
return {
LightspeedLabel = { fg = C.red_3, underline = true },
LightspeedLabelOverlapped = { fg = C.blue, underline = true },
LightspeedLabelDistant = { fg = C.red_1, underline = true },
LightspeedLabelDistantOverlapped = { fg = C.blue_1, underline = true },
LightspeedShortcut = { fg = C.black, bg = C.red_3, bold = true, underline = true },
LightspeedShortcutOverlapped = { fg = C.black, bg = C.blue, bold = true, underline = true },
LightspeedMaskedChar = { fg = C.green_1 },
LightspeedGreyWash = { fg = C.grey_2, bg = C.none },
LightspeedUnlabeledMatch = { fg = C.white, bold = true },
LightspeedOneCharMatch = { fg = C.green, bg = C.red_3, bold = true },
LightspeedUniqueChar = { fg = C.white, bold = true },
LightspeedPendingOpArea = { fg = C.yellow },
}
@@ -0,0 +1,15 @@
return {
NeoTreeDirectoryIcon = { fg = C.blue },
NeoTreeRootName = { fg = C.fg, bold = true },
NeoTreeFileName = { fg = C.fg },
NeoTreeFileIcon = { fg = C.fg },
NeoTreeFileNameOpened = { fg = C.green },
NeoTreeIndentMarker = { fg = C.blue_3 },
NeoTreeGitAdded = { fg = C.green },
NeoTreeGitConflict = { fg = C.red },
NeoTreeGitModified = { fg = C.orange },
NeoTreeGitUntracked = { fg = C.yellow },
NeoTreeNormal = { bg = C.blue_2 },
NeoTreeNormalNC = { bg = C.blue_2 },
NeoTreeSymbolicLinkTarget = { fg = C.cyan },
}
@@ -0,0 +1,24 @@
return {
NotifyERRORBorder = { fg = C.red },
NotifyWARNBorder = { fg = C.orange_1 },
NotifyINFOBorder = { fg = C.green },
NotifyDEBUGBorder = { fg = C.cyan },
NotifyTRACERBorder = { fg = C.purple },
NotifyERRORIcon = { fg = C.red },
NotifyWARNIcon = { fg = C.orange_1 },
NotifyINFOIcon = { fg = C.green },
NotifyDEBUGIcon = { fg = C.cyan },
NotifyTRACEIcon = { fg = C.purple },
NotifyERRORTitle = { fg = C.red },
NotifyWARNTitle = { fg = C.orange_1 },
NotifyINFOTitle = { fg = C.green },
NotifyDEBUGTitle = { fg = C.cyan },
NotifyTRACETitle = { fg = C.purple },
NotifyERRORBody = { fg = C.fg },
NotifyWARNBody = { fg = C.fg },
NotifyINFOBody = { fg = C.fg },
NotifyDEBUGBody = { fg = C.fg },
NotifyTRACEBody = { fg = C.fg },
NotifyLogTime = { fg = C.grey_2 },
NotifyLogTitle = { fg = C.blue },
}
@@ -0,0 +1,19 @@
return {
NvimTreeFolderIcon = { fg = C.blue },
NvimTreeExecFile = { fg = C.green },
NvimTreeOpenedFile = { fg = C.green },
NvimTreeRootFolder = { fg = C.bg },
NvimTreeEndOfBuffer = { fg = C.bg },
NvimTreeNormal = { bg = C.blue_2 },
NvimTreeNormalNC = { bg = C.blue_2 },
NvimTreeVertSplit = { fg = C.blue_2, bg = C.blue_2 },
NvimTreeImageFile = { fg = C.purple },
NvimTreeSymlink = { fg = C.cyan },
NvimTreeSpecialFile = { fg = C.yellow },
NvimTreeGitDeleted = { fg = C.red },
NvimTreeGitMerge = { fg = C.orange },
NvimTreeGitRenamed = { fg = C.purple },
NvimTreeGitStaged = { fg = C.green },
NvimTreeGitDirty = { fg = C.red },
NvimTreeGitNew = { fg = C.yellow },
}
@@ -0,0 +1,31 @@
return {
DevIconC = { fg = C.c },
DevIconCss = { fg = C.css },
DevIconDeb = { fg = C.deb },
DevIconDockerfile = { fg = C.docker },
DevIconHtml = { fg = C.html },
DevIconJpeg = { fg = C.jpeg },
DevIconJpg = { fg = C.jpg },
DevIconJs = { fg = C.js },
DevIconJsx = { fg = C.jsx },
DevIconKotlin = { fg = C.kt },
DevIconLock = { fg = C.lock },
DevIconLua = { fg = C.lua },
DevIconMp3 = { fg = C.mp3 },
DevIconMp4 = { fg = C.mp4 },
DevIconOut = { fg = C.out },
DevIconPng = { fg = C.png },
DevIconPy = { fg = C.py },
DevIconRb = { fg = C.rb },
DevIconRobots = { fg = C.robots },
DevIconRpm = { fg = C.rpm },
DevIconRs = { fg = C.rs },
DevIconToml = { fg = C.toml },
DevIconTrueTypeFont = { fg = C.ttf },
DevIconTs = { fg = C.ts },
DevIconVue = { fg = C.vue },
DevIconWebOpenFontFormat = { fg = C.woff },
DevIconWebOpenFontFormat2 = { fg = C.woff2 },
DevIconXz = { fg = C.zip },
DevIconZip = { fg = C.zip },
}
@@ -0,0 +1,9 @@
return {
rainbowcol1 = { fg = "Gold" },
rainbowcol2 = { fg = "Orchid" },
rainbowcol3 = { fg = "LightSkyBlue" },
rainbowcol4 = { fg = "Gold" },
rainbowcol5 = { fg = "Orchid" },
rainbowcol6 = { fg = "LightSkyBlue" },
rainbowcol7 = { fg = "Orchid" },
}
@@ -0,0 +1 @@
return { FocusedSymbol = { fg = C.yellow, bg = C.none } }
@@ -0,0 +1,57 @@
return {
TelescopeResultsTitle = { fg = C.green },
TelescopePromptTitle = { fg = C.blue },
TelescopePreviewTitle = { fg = C.purple },
TelescopeResultsBorder = { fg = C.fg },
TelescopePromptBorder = { fg = C.fg },
TelescopePreviewBorder = { fg = C.fg },
TelescopeSelectionCaret = { fg = C.red },
TelescopeMatching = { fg = C.yellow },
TelescopeSelection = { bg = C.grey_5 },
TelescopeMultiSelection = { fg = C.blue },
TelescopeMultiIcon = { fg = C.blue },
TelescopeNormal = { fg = C.fg, bg = C.bg },
TelescopePreviewNormal = { fg = C.fg, bg = C.bg },
TelescopePromptNormal = { fg = C.fg, bg = C.bg },
TelescopeResultsNormal = { fg = C.fg, bg = C.bg },
TelescopeBorder = { fg = C.fg },
TelescopeTitle = { fg = C.fg },
TelescopePromptCounter = { fg = C.grey_1 },
TelescopePromptPrefix = { fg = C.blue },
TelescopePreviewLine = { bg = C.grey_5 },
TelescopePreviewMatch = { fg = C.yellow },
TelescopePreviewPipe = { fg = C.yellow },
TelescopePreviewCharDev = { fg = C.yellow },
TelescopePreviewDirectory = { fg = C.blue },
TelescopePreviewBlock = { fg = C.yellow },
TelescopePreviewLink = { fg = C.blue },
TelescopePreviewSocket = { fg = C.purple },
TelescopePreviewRead = { fg = C.yellow },
TelescopePreviewWrite = { fg = C.purple },
TelescopePreviewExecute = { fg = C.green },
TelescopePreviewHyphen = { fg = C.grey_1 },
TelescopePreviewSticky = { fg = C.blue },
TelescopePreviewSize = { fg = C.green },
TelescopePreviewUser = { fg = C.yellow },
TelescopePreviewGroup = { fg = C.yellow },
TelescopePreviewDate = { fg = C.blue },
TelescopePreviewMessage = { fg = C.fg },
TelescopePreviewMessageFillchar = { fg = C.fg },
TelescopeResultsClass = { fg = C.yellow },
TelescopeResultsConstant = { fg = C.yellow },
TelescopeResultsField = { fg = C.red },
TelescopeResultsFunction = { fg = C.blue },
TelescopeResultsMethod = { fg = C.blue },
TelescopeResultsOperator = { fg = C.cyan },
TelescopeResultsStruct = { fg = C.purple },
TelescopeResultsVariable = { fg = C.red },
TelescopeResultsLineNr = { fg = C.grey_1 },
TelescopeResultsIdentifier = { fg = C.blue },
TelescopeResultsNumber = { fg = C.orange },
TelescopeResultsComment = { fg = C.grey_2 },
TelescopeResultsSpecialComment = { fg = C.grey },
TelescopeResultsDiffChange = { fg = C.none, bg = C.yellow },
TelescopeResultsDiffAdd = { fg = C.none, bg = C.green },
TelescopeResultsDiffDelete = { fg = C.none, bg = C.red },
TelescopeResultsDiffUntracked = { fg = C.none, bg = C.grey_1 },
}
@@ -0,0 +1,14 @@
return {
VimwikiLink = { fg = C.cyan, bg = C.none },
VimwikiHeaderChar = { fg = C.grey, bg = C.none },
VimwikiHR = { fg = C.yellow, bg = C.none },
VimwikiList = { fg = C.orange, bg = C.orange },
VimwikiTag = { fg = C.orange, bg = C.orange },
VimwikiMarkers = { fg = C.grey, bg = C.none },
VimwikiHeader1 = { fg = C.orange, bg = C.none, bold = true },
VimwikiHeader2 = { fg = C.green, bg = C.none, bold = true },
VimwikiHeader3 = { fg = C.blue, bg = C.none, bold = true },
VimwikiHeader4 = { fg = C.cyan, bg = C.none, bold = true },
VimwikiHeader5 = { fg = C.yellow, bg = C.none, bold = true },
VimwikiHeader6 = { fg = C.purple, bg = C.none, bold = true },
}
@@ -0,0 +1,5 @@
return {
WhichKeyFloat = { fg = C.fg },
WhichKeyDesc = { fg = C.blue },
WhichKeyGroup = { fg = C.blue },
}
@@ -0,0 +1,59 @@
local treesitter = {
TSError = { fg = C.red },
TSPunctDelimiter = { fg = C.fg },
TSPunctBracket = { fg = C.fg },
TSPunctSpecial = { fg = C.fg },
TSConstant = { fg = C.yellow },
TSConstBuiltin = { fg = C.orange },
TSConstMacro = { fg = C.red },
TSStringRegex = { fg = C.green },
TSString = { fg = C.green },
TSStringEscap = { fg = C.red },
TSCharacter = { fg = C.green },
TSNumber = { fg = C.orange },
TSBoolean = { fg = C.orange },
TSFloat = { fg = C.green },
TSAnnotation = { fg = C.yellow },
TSAttribute = { fg = C.red },
TSNamespace = { fg = C.purple },
TSFuncBuiltin = { fg = C.blue },
TSFunction = { fg = C.blue },
TSFuncMacro = { fg = C.yellow },
TSParameter = { fg = C.red },
TSParameterReference = { fg = C.cyan },
TSMethod = { fg = C.blue },
TSField = { fg = C.red },
TSProperty = { fg = C.yellow },
TSConstructor = { fg = C.yellow },
TSConditional = { fg = C.purple },
TSRepeat = { fg = C.purple },
TSLabel = { fg = C.blue },
TSKeyword = { fg = C.purple },
TSKeywordFunction = { fg = C.purple },
TSKeywordOperator = { fg = C.purple },
TSOperator = { fg = C.cyan },
TSException = { fg = C.purple },
TSType = { fg = C.blue },
TSTypeBuiltin = { fg = C.blue },
TSStructure = { fg = C.purple },
TSInclude = { fg = C.purple },
TSVariable = { fg = C.red },
TSVariableBuiltin = { fg = C.yellow },
TSText = { fg = C.fg },
TSTextReference = { fg = C.yellow },
TSStrong = { fg = C.blue, style = "bold" },
TSEmphasis = { fg = C.purple, style = "italic" },
TSUnderline = { fg = C.fg },
TSTitle = { fg = C.fg },
TSLiteral = { fg = C.fg },
TSURI = { fg = C.green },
TSTag = { fg = C.red },
TSTagDelimiter = { fg = C.fg },
markdownTSNone = { fg = C.fg },
markdownTSTitle = { fg = C.red },
markdownTSLiteral = { fg = C.green },
markdownTSPunctSpecial = { fg = C.red },
markdownTSPunctDelimiter = { fg = C.fg },
}
return treesitter
+24
View File
@@ -0,0 +1,24 @@
local M = {}
local user_settings = astronvim.user_plugin_opts "default_theme"
function M.parse_diagnostic_style(default)
if type(user_settings.diagnostics_style) == "table" then
default = vim.tbl_deep_extend("force", user_settings.diagnostics_style, default)
elseif type(user_settings.diagnostics_style) == "string" then
default.style = user_settings.diagnostics_style
end
return default
end
function M.parse_style(spec)
if spec.style then
for match in (spec.style .. ","):gmatch "(.-)," do
spec[match] = true
end
spec.style = nil
end
return spec
end
return M