added emoji (still doesn't work though)
This commit is contained in:
parent
c2f3e56ae7
commit
5fed75607d
@ -4,6 +4,9 @@ return {
|
|||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
version = "1.*",
|
version = "1.*",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
|
-- "allaman/emoji.nvim",
|
||||||
|
-- "saghen/blink.compat",
|
||||||
|
"moyiz/blink-emoji.nvim",
|
||||||
"ribru17/blink-cmp-spell",
|
"ribru17/blink-cmp-spell",
|
||||||
-- Snippet Engine
|
-- Snippet Engine
|
||||||
{
|
{
|
||||||
@ -18,9 +21,9 @@ return {
|
|||||||
end
|
end
|
||||||
return "make install_jsregexp"
|
return "make install_jsregexp"
|
||||||
end)(),
|
end)(),
|
||||||
config = function()
|
config = function()
|
||||||
require 'snippets'
|
require("snippets")
|
||||||
end,
|
end,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
-- `friendly-snippets` contains a variety of premade snippets.
|
-- `friendly-snippets` contains a variety of premade snippets.
|
||||||
-- See the README about individual language/framework/plugin snippets:
|
-- See the README about individual language/framework/plugin snippets:
|
||||||
@ -80,15 +83,42 @@ return {
|
|||||||
},
|
},
|
||||||
|
|
||||||
sources = {
|
sources = {
|
||||||
default = { "lsp", "path", "snippets", "spell", "lazydev" },
|
-- removed "spell" from default list
|
||||||
|
default = { "lsp", "path", "snippets", "lazydev", "emoji" },
|
||||||
providers = {
|
providers = {
|
||||||
spell = {
|
spell = {
|
||||||
name = 'Spell',
|
name = "Spell",
|
||||||
module = 'blink-cmp-spell',
|
module = "blink-cmp-spell",
|
||||||
opts = {
|
opts = {
|
||||||
max_entries = 5
|
max_entries = 5,
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
|
emoji = {
|
||||||
|
name = "Emoji",
|
||||||
|
module = "blink-emoji",
|
||||||
|
score_offset = 15,
|
||||||
|
opts = {
|
||||||
|
insert = true,
|
||||||
|
---@type string|table|fun():table
|
||||||
|
trigger = function()
|
||||||
|
return { ":" }
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
should_show_items = function()
|
||||||
|
return vim.tbl_contains({ "gitcommit", "markdown" }, vim.o.filetype)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
-- emoji = {
|
||||||
|
-- name = "emoji",
|
||||||
|
-- module = "blink.compat.source",
|
||||||
|
-- transform_items = function(ctx, items)
|
||||||
|
-- local kind = require("blink.cmp.types").CompletionItemKind.Text
|
||||||
|
-- for i = 1, #items do
|
||||||
|
-- items[i].kind = kind
|
||||||
|
-- end
|
||||||
|
-- return items
|
||||||
|
-- end,
|
||||||
|
-- },
|
||||||
lazydev = { module = "lazydev.integrations.blink", score_offset = 100 },
|
lazydev = { module = "lazydev.integrations.blink", score_offset = 100 },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user