nvim: add blink-emoji completion 🚀
This commit is contained in:
parent
8ccaf3b9d7
commit
a617b937c0
2 changed files with 16 additions and 20 deletions
home/common/nvim
|
@ -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 },
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue