gruber-darker.nvim/lua/gruber-darker/highlights/lsp.lua

48 lines
2.4 KiB
Lua
Raw Normal View History

2023-03-30 06:13:32 +02:00
local Highlight = require("gruber-darker.highlight")
local c = require("gruber-darker.palette")
2023-03-30 06:13:32 +02:00
local opts = require("gruber-darker.config").get_opts()
local gruber_hl = require("gruber-darker.highlights.colorscheme").highlights
---@type HighlightsProvider
local M = {
2023-04-06 02:10:12 +02:00
highlights = {},
2023-03-30 06:13:32 +02:00
}
function M.setup()
2023-04-06 02:10:12 +02:00
for _, value in pairs(M.highlights) do
value:setup()
end
2023-03-30 06:13:32 +02:00
end
M.highlights.diagnostic_error = Highlight.new("DiagnosticError", { link = gruber_hl.red_bold })
2023-03-30 06:13:32 +02:00
M.highlights.diagnostic_sign_error = Highlight.new("DiagnosticSignError", { link = gruber_hl.red_sign })
M.highlights.diagnostic_underline_error = Highlight.new("DiagnosticUnderlineError", { link = gruber_hl.red_underline })
M.highlights.diagnostic_warn = Highlight.new("DiagnosticWarn", { link = gruber_hl.yellow_bold })
M.highlights.diagnostic_sign_warn = Highlight.new("DiagnosticSignWarn", { link = gruber_hl.yellow_sign })
M.highlights.diagnostic_underline_warn = Highlight.new("DiagnosticUnderlineWarn", { link = gruber_hl.yellow_underline })
2023-03-30 06:13:32 +02:00
M.highlights.diagnostic_info = Highlight.new("DiagnosticInfo", { link = gruber_hl.green_bold })
M.highlights.diagnostic_sign_info = Highlight.new("DiagnosticSignInfo", { link = gruber_hl.green_sign })
M.highlights.diagnostic_underline_info = Highlight.new("DiagnosticUnderlineInfo", { link = gruber_hl.green_underline })
2023-03-30 06:13:32 +02:00
M.highlights.diagnostic_hint = Highlight.new("DiagnosticHint", { link = gruber_hl.wisteria })
M.highlights.diagnostic_sign_hint = Highlight.new("DiagnosticSignHint", { link = gruber_hl.wisteria_sign })
2023-04-06 02:10:12 +02:00
M.highlights.diagnostic_underline_hint =
Highlight.new("DiagnosticUnderlineHint", { link = gruber_hl.wisteria_underline })
2023-03-30 06:13:32 +02:00
---Used for highlighting "text" references
-- M.highlights.lsp_reference_text = Highlight.new("LspReferenceText", {})
---Used for highlighting "read" references
-- M.highlights.lsp_reference_read = Highlight.new("LspReferenceRead", {})
---Used for highlighting "write" references
-- M.highlights.lsp_reference_write = Highlight.new("LspReferenceWrite", {})
---Used to color the virtual text of the codelens.
-- M.highlights.lsp_code_lens = Highlight.new("LspCodeLens", {})
---Used to color the separator between two or more code lenses.
-- M.highlights.lsp_code_lens_separator = Highlight.new("LspCodeLensSeparator", {})
---Used to highlight the active parameter in the signature help.
-- M.highlights.lsp_signature_active_parameter = Highlight.new("LspSignatureActiveParameter", {})
2023-03-30 06:13:32 +02:00
return M