Add blink.cmp emoji selection
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user