feat(nvim): add cmp icon for docker

This commit is contained in:
Price Hiller 2023-09-28 16:16:09 -05:00
parent 1ba0a7837c
commit 6e0aaf7e33
No known key found for this signature in database
2 changed files with 11 additions and 3 deletions

View File

@ -151,13 +151,20 @@ return {
conventionalcommits = { symbol = "", name = "Commit", hl_group = "Commit" },
spell = { symbol = "󰏪 ", name = "Spell", hl_group = "Spell" },
git = { symbol = "󰊢 ", name = "Git", hl_group = "Git" },
docker_compose_language_service = { symbol = "󰡨 ", name = "Docker", hl_group = "Docker"}
}
local extra_kind_icons = {
TypeParameter = "",
}
local selection = selections[entry.source.name]
local selection
if entry.source.name == "nvim_lsp" then
-- vim.notify(vim.inspect(entry.source.source))
selection = selections[entry.source.source.client.name]
else
selection = selections[entry.source.name]
end
if not selection then
local kind = require("lspkind").cmp_format({
mode = "symbol_text",
@ -326,7 +333,7 @@ return {
cmp.setup.filetype("gitcommit", {
sources = standard_sources({
{ name = "conventionalcommits", priotity = 99 },
{ name = "git", priority = 98 }
{ name = "git", priority = 98 }
}),
})

View File

@ -112,9 +112,10 @@ return {
CmpCustomSelectionPath = { fg = colors.fujiWhite, bg = colors.autumnYellow },
CmpCustomSelectionCalculator = { fg = colors.fujiWhite, bg = colors.waveBlue2 },
CmpCustomSelectionNeorg = { fg = colors.fujiWhite, bg = colors.waveAqua1 },
CmpCustomSelectionEmoji = { fg = colors.fujiWhite, bg = colors.dragonBlue },
CmpCustomSelectionEmoji = { fg = colors.fujiWhite, bg = colors.carpYellow },
CmpCustomSelectionZsh = { fg = colors.fujiWhite, bg = colors.springGreen },
CmpCustomSelectionCrates = { fg = colors.fujiWhite, bg = colors.roninYellow },
CmpCustomSelectionDocker = { fg = colors.fujiWhite, bg = colors.springBlue },
CmpCustomSelectionCmdHistory = { fg = colors.fujiWhite, bg = colors.waveBlue2 },
CmpCustomSelectionRipgrep = { fg = colors.fujiWhite, bg = colors.dragonBlue },
CmpCustomSelectionNpm = { fg = colors.fujiWhite, bg = colors.peachRed },