feat: add support for vim.diagnostic and nvim-cmp custom menu (#103)

* vim.lsp.diagnostic has been moved to vim.diagnostic

* feat: added support for cmp custom menu
This commit is contained in:
Abouzar Parvan
2021-10-21 11:41:39 +03:30
committed by GitHub
parent 8b53447ff6
commit cd6f57c0a4

View File

@@ -158,6 +158,11 @@ function M.setup(config)
LspReferenceRead = { bg = c.fg_gutter }, -- used for highlighting "read" references
LspReferenceWrite = { bg = c.fg_gutter }, -- used for highlighting "write" references
DiagnosticError = { fg = c.error }, -- Used as the base highlight group. Other Diagnostic highlights link to this by default
DiagnosticWarn = { fg = c.warning }, -- Used as the base highlight group. Other Diagnostic highlights link to this by default
DiagnosticInfo = { fg = c.info }, -- Used as the base highlight group. Other Diagnostic highlights link to this by default
DiagnosticHint = { fg = c.hint }, -- Used as the base highlight group. Other Diagnostic highlights link to this by default
LspDiagnosticsDefaultError = { fg = c.error }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsDefaultWarning = { fg = c.warning }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
LspDiagnosticsDefaultInformation = { fg = c.info }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
@@ -403,6 +408,16 @@ function M.setup(config)
HopUnmatched = { fg = c.dark3 },
LightspeedGreyWash = { fg = c.dark3 },
-- Cmp
CmpDocumentation = { fg = c.fg, bg = c.bg_float },
CmpDocumentationBorder = { fg = c.border_highlight, bg = c.bg_float },
CmpItemAbbr = { fg = c.fg, bg = c.none },
CmpItemAbbrDeprecated = { fg = c.fg_gutter, bg = c.none },
CmpItemAbbrMatch = { fg = c.green1, bg = c.none },
CmpItemAbbrMatchFuzzy = { fg = c.green1, bg = c.none },
CmpItemKind = { fg = c.teal, bg = c.none },
CmpItemMenu = { fg = c.comment, bg = c.none },
}
theme.defer = {}