Add blink.cmp emoji selection
This commit is contained in:
@@ -3,6 +3,8 @@ return {
|
|||||||
dependencies = {
|
dependencies = {
|
||||||
-- For auto-completion in the avante window
|
-- For auto-completion in the avante window
|
||||||
"Kaiser-Yang/blink-cmp-avante",
|
"Kaiser-Yang/blink-cmp-avante",
|
||||||
|
-- For emoji selection
|
||||||
|
"moyiz/blink-emoji.nvim",
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
completion = {
|
completion = {
|
||||||
@@ -21,7 +23,7 @@ return {
|
|||||||
},
|
},
|
||||||
sources = {
|
sources = {
|
||||||
-- Add 'avante' to the list
|
-- Add 'avante' to the list
|
||||||
default = { "avante", "lsp", "path", "snippets", "buffer" },
|
default = { "avante", "lsp", "path", "snippets", "buffer", "emoji" },
|
||||||
providers = {
|
providers = {
|
||||||
avante = {
|
avante = {
|
||||||
module = "blink-cmp-avante",
|
module = "blink-cmp-avante",
|
||||||
@@ -30,6 +32,18 @@ return {
|
|||||||
-- options for blink-cmp-avante
|
-- 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