feat(nvim): add snippet selection to cmp
This commit is contained in:
parent
55dd3b27c3
commit
9a22d8c10f
@ -158,7 +158,8 @@ return {
|
||||
npm = { symbol = " ", name = "Npm,", hl_group = "Npm," },
|
||||
conventionalcommits = { symbol = " ", name = "Commit", hl_group = "Commit" },
|
||||
git = { symbol = " ", name = "Git", hl_group = "Git" },
|
||||
docker_compose_language_service = { symbol = " ", name = "Docker", hl_group = "Docker" }
|
||||
docker_compose_language_service = { symbol = " ", name = "Docker", hl_group = "Docker" },
|
||||
luasnip = { symbol = " ", name = "Snippet" }
|
||||
}
|
||||
|
||||
local extra_kind_icons = {
|
||||
@ -244,8 +245,10 @@ return {
|
||||
else
|
||||
completion_item.kind = " " .. selection.symbol
|
||||
completion_item.menu = selection.symbol .. selection.name
|
||||
if selection.hl_group then
|
||||
completion_item.kind_hl_group = "CmpCustomSelection" .. selection.hl_group
|
||||
end
|
||||
end
|
||||
|
||||
if not completion_item.abbr then
|
||||
local word = entry:get_insert_text()
|
||||
|
@ -121,6 +121,7 @@ return {
|
||||
CmpCustomSelectionRipgrep = { fg = colors.fujiWhite, bg = colors.crystalBlue },
|
||||
CmpCustomSelectionNpm = { fg = colors.fujiWhite, bg = colors.peachRed },
|
||||
CmpCustomSelectionCommit = { fg = colors.fujiWhite, bg = colors.peachRed },
|
||||
CmpCustomSelectionSnippet = { fg = colors.fujiWhite, bg = colors.peachRed },
|
||||
TelescopeNormal = { bg = colors.sumiInk2 },
|
||||
TelescopeBorder = { bg = colors.sumiInk2, fg = colors.sumiInk1 },
|
||||
TelescopePromptBorder = { bg = colors.sumiInk0, fg = colors.sumiInk0 },
|
||||
|
Loading…
Reference in New Issue
Block a user