nvim: add blink-emoji completion 🚀

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

View file

@ -29,7 +29,7 @@ require 'blink-cmp'.setup({
menu = {
auto_show = true,
border = 'rounded',
direction_priority = { 'n' },
direction_priority = { 'n', 's' },
draw = {
components = {
kind_icon = {
@ -61,9 +61,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 },
}
},
},
})