feat(treesitter): add @comment.luadoc
This commit is contained in:
parent
e9c02cc16a
commit
206249b22b
@ -5,7 +5,7 @@ Color.__index = Color
|
||||
|
||||
---Create a new color
|
||||
---@param value integer
|
||||
---@return table
|
||||
---@return Color
|
||||
function Color.new(value)
|
||||
local color = setmetatable({
|
||||
value = value,
|
||||
@ -14,7 +14,7 @@ function Color.new(value)
|
||||
end
|
||||
|
||||
---Create the "NONE" color
|
||||
---@return table
|
||||
---@return Color
|
||||
function Color.none()
|
||||
local color = setmetatable({
|
||||
value = nil,
|
||||
|
@ -2,7 +2,7 @@ local M = {}
|
||||
|
||||
---@class HighlightsProvider
|
||||
---@field highlights table<string, Highlight>
|
||||
---@field setup fun()
|
||||
---@field setup fun() Set highlights
|
||||
|
||||
---@type HighlightsProvider[]
|
||||
local providers = {
|
||||
|
@ -1,6 +1,5 @@
|
||||
local Highlight = require("gruber-darker.highlight")
|
||||
local c = require("gruber-darker.palette")
|
||||
local opts = require("gruber-darker.config").get_opts()
|
||||
local vim_hl = require("gruber-darker.highlights.vim").highlights
|
||||
local gruber_hl = require("gruber-darker.highlights.colorscheme").highlights
|
||||
|
||||
---@type HighlightsProvider
|
||||
@ -44,4 +43,20 @@ M.highlights.diagnostic_underline_hint =
|
||||
---Used to highlight the active parameter in the signature help.
|
||||
-- M.highlights.lsp_signature_active_parameter = Highlight.new("LspSignatureActiveParameter", {})
|
||||
|
||||
-- M.highlights.lsp_type_class = Highlight.new("@lsp.type.class", {})
|
||||
-- M.highlights.lsp_type_decorator = Highlight.new("@lsp.type.decorator", {})
|
||||
-- M.highlights.lsp_type_enum = Highlight.new("@lsp.type.enum", {})
|
||||
-- M.highlights.lsp_type_enum_member = Highlight.new("@lsp.type.enumMember", {})
|
||||
-- M.highlights.lsp_type_function = Highlight.new("@lsp.type.function", {})
|
||||
-- M.highlights.lsp_type_interface = Highlight.new("@lsp.type.interface", {})
|
||||
-- M.highlights.lsp_type_macro = Highlight.new("@lsp.type.macro", {})
|
||||
-- M.highlights.lsp_type_method = Highlight.new("@lsp.type.method", {})
|
||||
-- M.highlights.lsp_type_namespace = Highlight.new("@lsp.type.namespace", {})
|
||||
-- M.highlights.lsp_type_parameter = Highlight.new("@lsp.type.parameter", {})
|
||||
-- M.highlights.lsp_type_property = Highlight.new("@lsp.type.property", {})
|
||||
-- M.highlights.lsp_type_struct = Highlight.new("@lsp.type.struct", {})
|
||||
-- M.highlights.lsp_type_type = Highlight.new("@lsp.type.type", {})
|
||||
-- M.highlights.lsp_type_type_parameter = Highlight.new("@lsp.type.typeParameter", {})
|
||||
-- M.highlights.lsp_type_variable = Highlight.new("@lsp.type.variable", {})
|
||||
|
||||
return M
|
||||
|
@ -25,6 +25,7 @@ end
|
||||
M.highlights.comment = Highlight.new("@comment", { link = vim_hl.comment })
|
||||
---Comments documenting code
|
||||
M.highlights.comment_documentation = Highlight.new("@comment.documentation", { link = gruber_hl.green })
|
||||
M.highlights.comment_luadoc = Highlight.new("@comment.luadoc", { link = M.highlights.comment_documentation })
|
||||
---Syntax/parser errors
|
||||
M.highlights.error = Highlight.new("@error", {})
|
||||
---Completely disable the highlight
|
||||
|
@ -210,7 +210,8 @@ M.highlights.structure = Highlight.new("Structure", { link = gruber_hl.yellow_bo
|
||||
M.highlights.typedef = Highlight.new("Typedef", { link = gruber_hl.yellow_bold })
|
||||
---(preferred) any special symbol
|
||||
M.highlights.special = Highlight.new("Special", { link = gruber_hl.yellow })
|
||||
M.highlights.special_char = Highlight.new("SpecialChar", { link = gruber_hl.yellow }) --- special character in a constant
|
||||
--- special character in a constant
|
||||
M.highlights.special_char = Highlight.new("SpecialChar", { link = gruber_hl.yellow })
|
||||
---You can use CTRL-] on this
|
||||
M.highlights.tag = Highlight.new("Tag", { link = gruber_hl.yellow })
|
||||
---Character that needs attention
|
||||
|
Loading…
Reference in New Issue
Block a user