Updated treesitter captures
https://github.com/nvim-treesitter/nvim-treesitter/issues/2293
This commit is contained in:
68
lua/astrobox/highlights/modules/markup.lua
Normal file
68
lua/astrobox/highlights/modules/markup.lua
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
return function(palette)
|
||||||
|
return {
|
||||||
|
["@markup"] = { fg = palette.fg },
|
||||||
|
["@markup.checked"] = { fg = palette.green },
|
||||||
|
["@markup.danger"] = { fg = palette.red },
|
||||||
|
["@markup.diff.add"] = { link = "DiffAdded" },
|
||||||
|
["@markup.diff.delete"] = { link = "DiffDelete" },
|
||||||
|
["@markup.emphasis"] = { fg = palette.fg, italic = true },
|
||||||
|
["@markup.environment"] = { fg = palette.yellow },
|
||||||
|
["@markup.environment.name"] = { fg = palette.orange },
|
||||||
|
["@markup.heading"] = { fg = palette.green, bold = true },
|
||||||
|
["@markup.heading.1.markdown"] = { fg = palette.blue, bold = true },
|
||||||
|
["@markup.heading.2.markdown"] = { fg = palette.aqua, bold = true },
|
||||||
|
["@markup.heading.3.markdown"] = { fg = palette.purple, bold = true },
|
||||||
|
["@markup.heading.4.markdown"] = { fg = palette.yellow, bold = true },
|
||||||
|
["@markup.link"] = { fg = palette.aqua, bold = true },
|
||||||
|
["@markup.link.special"] = { link = "Special" },
|
||||||
|
["@markup.link.url"] = { link = "Underlined" },
|
||||||
|
["@markup.list"] = { link = "Special" },
|
||||||
|
["@markup.math"] = { fg = palette.aqua },
|
||||||
|
["@markup.note"] = { fg = palette.aqua },
|
||||||
|
["@markup.quote"] = { fg = palette.fg, italic = true },
|
||||||
|
["@markup.raw"] = { fg = palette.fg },
|
||||||
|
["@markup.strike"] = { fg = palette.fg, strikethrough = true },
|
||||||
|
["@markup.strong"] = { fg = palette.fg, bold = true },
|
||||||
|
["@markup.todo"] = { link = "Todo" },
|
||||||
|
["@markup.todo.checked"] = { link = "@markup.checked" },
|
||||||
|
["@markup.todo.danger"] = { link = "@markup.danger" },
|
||||||
|
["@markup.todo.note"] = { link = "@markup.note" },
|
||||||
|
["@markup.todo.unchecked"] = { link = "@markup.unchecked" },
|
||||||
|
["@markup.todo.warning"] = { link = "@markup.warning" },
|
||||||
|
["@markup.unchecked"] = { fg = palette.blue },
|
||||||
|
["@markup.underline"] = { link = "Underline" },
|
||||||
|
["@markup.warning"] = { fg = palette.yellow },
|
||||||
|
|
||||||
|
-- Deprecated
|
||||||
|
["@text"] = { fg = palette.fg },
|
||||||
|
["@text.checked"] = { fg = palette.green },
|
||||||
|
["@text.danger"] = { fg = palette.red },
|
||||||
|
["@text.diff.add"] = { link = "DiffAdded" },
|
||||||
|
["@text.diff.delete"] = { link = "DiffDelete" },
|
||||||
|
["@text.emphasis"] = { fg = palette.fg, italic = true },
|
||||||
|
["@text.environment"] = { fg = palette.yellow },
|
||||||
|
["@text.environment.name"] = { fg = palette.orange },
|
||||||
|
["@text.literal"] = { fg = palette.fg },
|
||||||
|
["@text.math"] = { fg = palette.aqua },
|
||||||
|
["@text.note"] = { fg = palette.aqua },
|
||||||
|
["@text.quote"] = { fg = palette.fg, italic = true },
|
||||||
|
["@text.reference"] = { fg = palette.aqua, bold = true },
|
||||||
|
["@text.strike"] = { fg = palette.fg, strikethrough = true },
|
||||||
|
["@text.strong"] = { fg = palette.fg, bold = true },
|
||||||
|
["@text.title"] = { fg = palette.green, bold = true },
|
||||||
|
["@text.title.1.markdown"] = { fg = palette.blue, bold = true },
|
||||||
|
["@text.title.2.markdown"] = { fg = palette.aqua, bold = true },
|
||||||
|
["@text.title.3.markdown"] = { fg = palette.purple, bold = true },
|
||||||
|
["@text.title.4.markdown"] = { fg = palette.yellow, bold = true },
|
||||||
|
["@text.todo"] = { link = "Todo" },
|
||||||
|
["@text.todo.checked"] = { link = "@text.checked" },
|
||||||
|
["@text.todo.danger"] = { link = "@text.danger" },
|
||||||
|
["@text.todo.note"] = { link = "@text.note" },
|
||||||
|
["@text.todo.unchecked"] = { link = "@text.unchecked" },
|
||||||
|
["@text.todo.warning"] = { link = "@text.warning" },
|
||||||
|
["@text.unchecked"] = { fg = palette.blue },
|
||||||
|
["@text.underline"] = { link = "Underline" },
|
||||||
|
["@text.uri"] = { link = "Underlined" },
|
||||||
|
["@text.warning"] = { fg = palette.yellow },
|
||||||
|
}
|
||||||
|
end
|
||||||
@@ -59,6 +59,7 @@ return function(palette)
|
|||||||
["@class"] = { link = "Type" },
|
["@class"] = { link = "Type" },
|
||||||
["@comment"] = { link = "Comment" },
|
["@comment"] = { link = "Comment" },
|
||||||
["@comment.documentation"] = { fg = palette.gray, bg = palette.none, nocombine = true },
|
["@comment.documentation"] = { fg = palette.gray, bg = palette.none, nocombine = true },
|
||||||
|
["@comment.todo"] = { link = "Todo" },
|
||||||
["@conditional"] = { link = "Conditional" },
|
["@conditional"] = { link = "Conditional" },
|
||||||
["@constant"] = { link = "Constant" },
|
["@constant"] = { link = "Constant" },
|
||||||
["@constant.builtin"] = { link = "@constant" },
|
["@constant.builtin"] = { link = "@constant" },
|
||||||
@@ -72,21 +73,25 @@ return function(palette)
|
|||||||
["@error"] = { link = "Error" },
|
["@error"] = { link = "Error" },
|
||||||
["@event"] = { fg = palette.orange },
|
["@event"] = { fg = palette.orange },
|
||||||
["@exception"] = { link = "Exception" },
|
["@exception"] = { link = "Exception" },
|
||||||
["@field"] = { link = "Identifier" },
|
["@field"] = { link = "@variable.member" }, -- Deprecated
|
||||||
["@float"] = { link = "Float" },
|
["@float"] = { link = "@number.float" }, -- Deprecated
|
||||||
["@function"] = { link = "Function" },
|
["@function"] = { link = "Function" },
|
||||||
["@function.macro"] = { link = "Macro" },
|
["@function.macro"] = { link = "Macro" },
|
||||||
|
["@function.method"] = { link = "Function" },
|
||||||
["@include"] = { link = "Include" },
|
["@include"] = { link = "Include" },
|
||||||
["@interface"] = { fg = palette.orange },
|
["@interface"] = { fg = palette.orange },
|
||||||
["@keyword"] = { link = "Keyword" },
|
["@keyword"] = { link = "Keyword" },
|
||||||
|
["@keyword.operator"] = { link = "Operator" },
|
||||||
["@label"] = { link = "Label" },
|
["@label"] = { link = "Label" },
|
||||||
["@method"] = { link = "Function" },
|
["@method"] = { link = "@function.method" }, -- Deprecated
|
||||||
["@modifier"] = { fg = palette.orange },
|
["@modifier"] = { fg = palette.orange },
|
||||||
["@namespace"] = { fg = palette.fg_gradiant[2] },
|
["@module"] = { fg = palette.fg_gradiant[2] },
|
||||||
|
["@namespace"] = { link = "@module" }, -- Deprecated
|
||||||
["@none"] = { link = "Conceal" },
|
["@none"] = { link = "Conceal" },
|
||||||
["@number"] = { link = "Number" },
|
["@number"] = { link = "Number" },
|
||||||
["@operator"] = { link = "Operator" },
|
["@number.float"] = { link = "Float" },
|
||||||
["@parameter"] = { fg = palette.fg_gradiant[2] },
|
["@operator"] = { link = "@keyword.operator" }, -- Deprecated?
|
||||||
|
["@parameter"] = { link = "@variable.parameter" }, -- Deprecated
|
||||||
["@preproc"] = { link = "PreProc" },
|
["@preproc"] = { link = "PreProc" },
|
||||||
["@property"] = { link = "@field" },
|
["@property"] = { link = "@field" },
|
||||||
["@punctuation.bracket"] = { link = "Identifier" },
|
["@punctuation.bracket"] = { link = "Identifier" },
|
||||||
@@ -99,47 +104,19 @@ return function(palette)
|
|||||||
["@string"] = { link = "String" },
|
["@string"] = { link = "String" },
|
||||||
["@string.escape"] = { fg = palette.red },
|
["@string.escape"] = { fg = palette.red },
|
||||||
["@string.regex"] = { fg = palette.aqua },
|
["@string.regex"] = { fg = palette.aqua },
|
||||||
["@string.special"] = { link = "Special" },
|
["@string.special"] = { link = "Special" }, -- Deprecated?
|
||||||
["@struct"] = { link = "Type" },
|
["@struct"] = { link = "Type" },
|
||||||
["@symbol"] = { link = "Special" },
|
["@symbol"] = { link = "Special" },
|
||||||
["@tag"] = { fg = palette.red },
|
["@tag"] = { fg = palette.red },
|
||||||
["@tag.attribute"] = { fg = palette.yellow },
|
["@tag.attribute"] = { fg = palette.yellow },
|
||||||
["@tag.delimiter"] = { fg = palette.fg },
|
["@tag.delimiter"] = { fg = palette.fg },
|
||||||
["@text"] = { fg = palette.fg },
|
|
||||||
["@text.checked"] = { fg = palette.green },
|
|
||||||
["@text.danger"] = { fg = palette.red },
|
|
||||||
["@text.diff.add"] = { link = "DiffAdded" },
|
|
||||||
["@text.diff.delete"] = { link = "DiffDelete" },
|
|
||||||
["@text.emphasis"] = { fg = palette.fg, italic = true },
|
|
||||||
["@text.environment"] = { fg = palette.yellow },
|
|
||||||
["@text.environment.name"] = { fg = palette.orange },
|
|
||||||
["@text.literal"] = { fg = palette.fg },
|
|
||||||
["@text.math"] = { fg = palette.aqua },
|
|
||||||
["@text.note"] = { fg = palette.aqua },
|
|
||||||
["@text.quote"] = { fg = palette.fg, italic = true },
|
|
||||||
["@text.reference"] = { fg = palette.aqua, bold = true },
|
|
||||||
["@text.strike"] = { fg = palette.fg, strikethrough = true },
|
|
||||||
["@text.strong"] = { fg = palette.fg, bold = true },
|
|
||||||
["@text.title"] = { fg = palette.green, bold = true },
|
|
||||||
["@text.title.1.markdown"] = { fg = palette.blue, bold = true },
|
|
||||||
["@text.title.2.markdown"] = { fg = palette.aqua, bold = true },
|
|
||||||
["@text.title.3.markdown"] = { fg = palette.purple, bold = true },
|
|
||||||
["@text.title.4.markdown"] = { fg = palette.yellow, bold = true },
|
|
||||||
["@text.todo"] = { link = "Todo" },
|
|
||||||
["@text.todo.checked"] = { link = "@text.checked" },
|
|
||||||
["@text.todo.danger"] = { link = "@text.danger" },
|
|
||||||
["@text.todo.note"] = { link = "@text.note" },
|
|
||||||
["@text.todo.unchecked"] = { link = "@text.unchecked" },
|
|
||||||
["@text.todo.warning"] = { link = "@text.warning" },
|
|
||||||
["@text.unchecked"] = { fg = palette.blue },
|
|
||||||
["@text.underline"] = { link = "Underline" },
|
|
||||||
["@text.uri"] = { link = "Underlined" },
|
|
||||||
["@text.warning"] = { fg = palette.yellow },
|
|
||||||
["@type"] = { link = "Type" },
|
["@type"] = { link = "Type" },
|
||||||
["@type.qualifier"] = { fg = palette.purple },
|
["@type.qualifier"] = { fg = palette.purple },
|
||||||
["@typeParameter"] = { fg = palette.yellow },
|
["@typeParameter"] = { fg = palette.yellow },
|
||||||
["@variable"] = { link = "Identifier" },
|
["@variable"] = { link = "Identifier" },
|
||||||
["@variable.builtin"] = { bold = true },
|
["@variable.builtin"] = { bold = true },
|
||||||
|
["@variable.member"] = { link = "Identifier" },
|
||||||
|
["@variable.parameter"] = { fg = palette.fg_gradiant[2] },
|
||||||
|
|
||||||
-- LSP
|
-- LSP
|
||||||
["@lsp.mod.attribute"] = { link = "@attribute" },
|
["@lsp.mod.attribute"] = { link = "@attribute" },
|
||||||
|
|||||||
Reference in New Issue
Block a user