diff --git a/dots/.config/nvim/lua/plugins/configs/cmp.lua b/dots/.config/nvim/lua/plugins/configs/cmp.lua index 8384217c..0032b95e 100644 --- a/dots/.config/nvim/lua/plugins/configs/cmp.lua +++ b/dots/.config/nvim/lua/plugins/configs/cmp.lua @@ -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 = { @@ -237,14 +238,16 @@ return { end kind.kind = " " .. strings[1] .. " " if not kind.menu and lsp_name then - kind.menu = " " .. lsp_name + kind.menu = " " .. lsp_name end completion_item = kind else completion_item.kind = " " .. selection.symbol completion_item.menu = selection.symbol .. selection.name - completion_item.kind_hl_group = "CmpCustomSelection" .. selection.hl_group + if selection.hl_group then + completion_item.kind_hl_group = "CmpCustomSelection" .. selection.hl_group + end end if not completion_item.abbr then diff --git a/dots/.config/nvim/lua/plugins/configs/kanagawa.lua b/dots/.config/nvim/lua/plugins/configs/kanagawa.lua index 6b1da356..f81d6e88 100644 --- a/dots/.config/nvim/lua/plugins/configs/kanagawa.lua +++ b/dots/.config/nvim/lua/plugins/configs/kanagawa.lua @@ -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 },