feat: add some lsp diagnostic groups
This commit is contained in:
parent
0ac73f59da
commit
0059cd051b
@ -40,8 +40,8 @@ vim.cmd.colorscheme("gruber-darker")
|
||||
```lua
|
||||
{
|
||||
bold = true,
|
||||
inverse = {
|
||||
signs = true,
|
||||
invert = {
|
||||
signs = false,
|
||||
},
|
||||
italic = {
|
||||
strings = true,
|
||||
|
@ -19,7 +19,7 @@
|
||||
local DEFAULTS = {
|
||||
bold = true,
|
||||
invert = {
|
||||
signs = true,
|
||||
signs = false,
|
||||
tabline = false,
|
||||
},
|
||||
italic = {
|
||||
|
@ -63,13 +63,13 @@ M.highlights.wisteria_bold = Highlight.new("GruberDarkerWisteriaBold", { fg = c.
|
||||
|
||||
-- Signs
|
||||
|
||||
M.highlights.red_sign = Highlight.new("GruberDarkerRedSign", { fg = c.red, bg = c.bg, reverse = opts.invert.signs })
|
||||
M.highlights.red_sign = Highlight.new("GruberDarkerRedSign", { fg = c.red, reverse = opts.invert.signs })
|
||||
M.highlights.quartz_sign =
|
||||
Highlight.new("GruberDarkerQuartzSign", { fg = c.quartz, bg = c.bg, reverse = opts.invert.signs })
|
||||
Highlight.new("GruberDarkerQuartzSign", { fg = c.quartz, reverse = opts.invert.signs })
|
||||
M.highlights.niagara_sign =
|
||||
Highlight.new("GruberDarkerNiagaraSign", { fg = c.niagara, bg = c.bg, reverse = opts.invert.signs })
|
||||
Highlight.new("GruberDarkerNiagaraSign", { fg = c.niagara, reverse = opts.invert.signs })
|
||||
M.highlights.wisteria_sign =
|
||||
Highlight.new("GruberDarkerWisteriaSign", { fg = c.wisteria, bg = c.bg, reverse = opts.invert.signs })
|
||||
Highlight.new("GruberDarkerWisteriaSign", { fg = c.wisteria, reverse = opts.invert.signs })
|
||||
|
||||
-- Underlines
|
||||
|
||||
|
@ -6,6 +6,7 @@ local M = {}
|
||||
---@type HighlightsProvider[]
|
||||
local providers = {
|
||||
require("gruber-darker.highlights.colorscheme"),
|
||||
require("gruber-darker.highlights.lsp"),
|
||||
require("gruber-darker.highlights.vim"),
|
||||
require("gruber-darker.highlights.terminal"),
|
||||
require("gruber-darker.highlights.treesitter"),
|
||||
|
33
lua/gruber-darker/highlights/lsp.lua
Normal file
33
lua/gruber-darker/highlights/lsp.lua
Normal file
@ -0,0 +1,33 @@
|
||||
local Highlight = require("gruber-darker.highlight")
|
||||
local c = require("gruber-darker.palette").default
|
||||
local opts = require("gruber-darker.config").get_opts()
|
||||
local gruber_hl = require("gruber-darker.highlights.colorscheme").highlights
|
||||
|
||||
---@type HighlightsProvider
|
||||
local M = {
|
||||
highlights = {},
|
||||
}
|
||||
|
||||
function M.setup()
|
||||
for _, value in pairs(M.highlights) do
|
||||
value:setup()
|
||||
end
|
||||
end
|
||||
|
||||
M.highlights.diagnostic_error = Highlight.new("DiagnosticError", { link = gruber_hl.red })
|
||||
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.red })
|
||||
-- M.highlights.diagnostic_sign_warn = Highlight.new("DiagnosticSignWarn", { link = gruber_hl.red_sign })
|
||||
-- M.highlights.diagnostic_underline_warn = Highlight.new("DiagnosticUnderlineWarn", { link = gruber_hl.red_underline })
|
||||
|
||||
M.highlights.diagnostic_info = Highlight.new("DiagnosticInfo", { link = gruber_hl.niagara })
|
||||
M.highlights.diagnostic_sign_info = Highlight.new("DiagnosticSignInfo", { link = gruber_hl.niagara_sign })
|
||||
M.highlights.diagnostic_underline_info = Highlight.new("DiagnosticUnderlineInfo", { link = gruber_hl.niagara_underline })
|
||||
|
||||
M.highlights.diagnostic_hint = Highlight.new("DiagnosticHint", { link = gruber_hl.wisteria })
|
||||
M.highlights.diagnostic_sign_hint = Highlight.new("DiagnosticSignHint", { link = gruber_hl.wisteria_sign })
|
||||
M.highlights.diagnostic_underline_hint = Highlight.new("DiagnosticUnderlineHint", { link = gruber_hl.wisteria_underline })
|
||||
|
||||
return M
|
Loading…
Reference in New Issue
Block a user