From cd6f57c0a419979686bc507b77c9c281e57e4d46 Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Thu, 21 Oct 2021 11:41:39 +0330 Subject: [PATCH] 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 --- lua/tokyonight/theme.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lua/tokyonight/theme.lua b/lua/tokyonight/theme.lua index da679e0..6592db9 100644 --- a/lua/tokyonight/theme.lua +++ b/lua/tokyonight/theme.lua @@ -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 = {}