nvim: add blink-emoji completion 🚀

This commit is contained in:
Daniel Lundin 2025-01-21 22:30:38 +01:00
commit a617b937c0
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI
2 changed files with 16 additions and 20 deletions
home/common/nvim

View file

@ -1,3 +1,4 @@
-- require('blink.compat').setup({ debug = true, impersonate_nvim_cmp = true })
require 'blink-cmp'.setup({
keymap = {
preset = 'enter',
@ -29,7 +30,7 @@ require 'blink-cmp'.setup({
menu = {
auto_show = true,
border = 'rounded',
direction_priority = { 'n' },
direction_priority = { 'n', 's' },
draw = {
components = {
kind_icon = {
@ -61,9 +62,18 @@ require 'blink-cmp'.setup({
},
sources = {
default = { 'lsp' },
default = {
'lsp',
'emoji',
},
cmdline = {},
providers = {},
providers = {
emoji = {
module = "blink-emoji",
name = "Emoji",
score_offset = 1,
opts = { insert = true },
}
},
},
})