Skip to content

Commit

Permalink
feat(nvim): invert cmp kind icon colors
Browse files Browse the repository at this point in the history
  • Loading branch information
johnallen3d committed Jan 9, 2023
1 parent ec80764 commit 46300be
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions dot_config/nvim/lua/config/colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,37 @@ function M:catppuccin()
fidget = true,
treesitter_context = false,
},

custom_highlights = function(C)
return {
CmpItemKindSnippet = { fg = C.base, bg = C.mauve },
CmpItemKindKeyword = { fg = C.base, bg = C.red },
CmpItemKindText = { fg = C.base, bg = C.teal },
CmpItemKindMethod = { fg = C.base, bg = C.blue },
CmpItemKindConstructor = { fg = C.base, bg = C.blue },
CmpItemKindFunction = { fg = C.base, bg = C.blue },
CmpItemKindFolder = { fg = C.base, bg = C.blue },
CmpItemKindModule = { fg = C.base, bg = C.blue },
CmpItemKindConstant = { fg = C.base, bg = C.peach },
CmpItemKindField = { fg = C.base, bg = C.green },
CmpItemKindProperty = { fg = C.base, bg = C.green },
CmpItemKindEnum = { fg = C.base, bg = C.green },
CmpItemKindUnit = { fg = C.base, bg = C.green },
CmpItemKindClass = { fg = C.base, bg = C.yellow },
CmpItemKindVariable = { fg = C.base, bg = C.flamingo },
CmpItemKindFile = { fg = C.base, bg = C.blue },
CmpItemKindInterface = { fg = C.base, bg = C.yellow },
CmpItemKindColor = { fg = C.base, bg = C.red },
CmpItemKindReference = { fg = C.base, bg = C.red },
CmpItemKindEnumMember = { fg = C.base, bg = C.red },
CmpItemKindStruct = { fg = C.base, bg = C.blue },
CmpItemKindValue = { fg = C.base, bg = C.peach },
CmpItemKindEvent = { fg = C.base, bg = C.blue },
CmpItemKindOperator = { fg = C.base, bg = C.blue },
CmpItemKindTypeParameter = { fg = C.base, bg = C.blue },
CmpItemKindCopilot = { fg = C.base, bg = C.teal },
}
end,
})

vim.g.catppuccin_flavour = "mocha"
Expand Down

0 comments on commit 46300be

Please sign in to comment.