Add blink.cmp emoji selection

This commit is contained in:
2025-10-14 13:38:58 -04:00
parent c26b6c9ea9
commit 75e5c3cf09

View File

@@ -3,6 +3,8 @@ return {
dependencies = {
-- For auto-completion in the avante window
"Kaiser-Yang/blink-cmp-avante",
-- For emoji selection
"moyiz/blink-emoji.nvim",
},
opts = {
completion = {
@@ -21,7 +23,7 @@ return {
},
sources = {
-- Add 'avante' to the list
default = { "avante", "lsp", "path", "snippets", "buffer" },
default = { "avante", "lsp", "path", "snippets", "buffer", "emoji" },
providers = {
avante = {
module = "blink-cmp-avante",
@@ -30,6 +32,18 @@ return {
-- options for blink-cmp-avante
},
},
emoji = {
module = "blink-emoji",
name = "Emoji",
score_offset = 15, -- Tune by preference
opts = {
insert = true, -- Insert emoji (default) or complete its name
---@type string|table|fun():table
trigger = function()
return { ":" }
end,
},
},
},
},
},