Skip to content

Commit

Permalink
feat: add support for vim.diagnostic and nvim-cmp custom menu (#103)
Browse files Browse the repository at this point in the history
* vim.lsp.diagnostic has been moved to vim.diagnostic

* feat: added support for cmp custom menu
  • Loading branch information
abzcoding authored Oct 21, 2021
1 parent 8b53447 commit cd6f57c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lua/tokyonight/theme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 = {}
Expand Down

0 comments on commit cd6f57c

Please sign in to comment.