feat(nvim): add cmp icon for docker
This commit is contained in:
parent
1ba0a7837c
commit
6e0aaf7e33
@ -151,13 +151,20 @@ return {
|
|||||||
conventionalcommits = { symbol = " ", name = "Commit", hl_group = "Commit" },
|
conventionalcommits = { symbol = " ", name = "Commit", hl_group = "Commit" },
|
||||||
spell = { symbol = " ", name = "Spell", hl_group = "Spell" },
|
spell = { symbol = " ", name = "Spell", hl_group = "Spell" },
|
||||||
git = { symbol = " ", name = "Git", hl_group = "Git" },
|
git = { symbol = " ", name = "Git", hl_group = "Git" },
|
||||||
|
docker_compose_language_service = { symbol = " ", name = "Docker", hl_group = "Docker"}
|
||||||
}
|
}
|
||||||
|
|
||||||
local extra_kind_icons = {
|
local extra_kind_icons = {
|
||||||
TypeParameter = "",
|
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
|
if not selection then
|
||||||
local kind = require("lspkind").cmp_format({
|
local kind = require("lspkind").cmp_format({
|
||||||
mode = "symbol_text",
|
mode = "symbol_text",
|
||||||
@ -326,7 +333,7 @@ return {
|
|||||||
cmp.setup.filetype("gitcommit", {
|
cmp.setup.filetype("gitcommit", {
|
||||||
sources = standard_sources({
|
sources = standard_sources({
|
||||||
{ name = "conventionalcommits", priotity = 99 },
|
{ name = "conventionalcommits", priotity = 99 },
|
||||||
{ name = "git", priority = 98 }
|
{ name = "git", priority = 98 }
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -112,9 +112,10 @@ return {
|
|||||||
CmpCustomSelectionPath = { fg = colors.fujiWhite, bg = colors.autumnYellow },
|
CmpCustomSelectionPath = { fg = colors.fujiWhite, bg = colors.autumnYellow },
|
||||||
CmpCustomSelectionCalculator = { fg = colors.fujiWhite, bg = colors.waveBlue2 },
|
CmpCustomSelectionCalculator = { fg = colors.fujiWhite, bg = colors.waveBlue2 },
|
||||||
CmpCustomSelectionNeorg = { fg = colors.fujiWhite, bg = colors.waveAqua1 },
|
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 },
|
CmpCustomSelectionZsh = { fg = colors.fujiWhite, bg = colors.springGreen },
|
||||||
CmpCustomSelectionCrates = { fg = colors.fujiWhite, bg = colors.roninYellow },
|
CmpCustomSelectionCrates = { fg = colors.fujiWhite, bg = colors.roninYellow },
|
||||||
|
CmpCustomSelectionDocker = { fg = colors.fujiWhite, bg = colors.springBlue },
|
||||||
CmpCustomSelectionCmdHistory = { fg = colors.fujiWhite, bg = colors.waveBlue2 },
|
CmpCustomSelectionCmdHistory = { fg = colors.fujiWhite, bg = colors.waveBlue2 },
|
||||||
CmpCustomSelectionRipgrep = { fg = colors.fujiWhite, bg = colors.dragonBlue },
|
CmpCustomSelectionRipgrep = { fg = colors.fujiWhite, bg = colors.dragonBlue },
|
||||||
CmpCustomSelectionNpm = { fg = colors.fujiWhite, bg = colors.peachRed },
|
CmpCustomSelectionNpm = { fg = colors.fujiWhite, bg = colors.peachRed },
|
||||||
|
Loading…
Reference in New Issue
Block a user