Updated blink cmp
This commit is contained in:
@@ -4,6 +4,7 @@ return {
|
||||
"rafamadriz/friendly-snippets",
|
||||
"L3MON4D3/LuaSnip",
|
||||
"Kaiser-Yang/blink-cmp-avante",
|
||||
"fang2hou/blink-copilot",
|
||||
},
|
||||
-- enabled = false,
|
||||
version = "*",
|
||||
@@ -13,6 +14,12 @@ return {
|
||||
use_nvim_cmp_as_default = true,
|
||||
nerd_font_variant = "mono",
|
||||
},
|
||||
signature = {
|
||||
enabled = true,
|
||||
window = {
|
||||
show_documentation = false,
|
||||
},
|
||||
},
|
||||
keymap = {
|
||||
preset = "default",
|
||||
|
||||
@@ -20,7 +27,7 @@ return {
|
||||
["<C-e>"] = {},
|
||||
|
||||
["<C-c>"] = { "show", "show_documentation", "hide_documentation" },
|
||||
["<NL>"] = { "select_and_accept" },
|
||||
["<CR>"] = { "select_and_accept", "fallback" },
|
||||
|
||||
["<Up>"] = { "select_prev", "fallback" },
|
||||
["<Down>"] = { "select_next", "fallback" },
|
||||
@@ -55,8 +62,14 @@ return {
|
||||
require("luasnip").jump(direction)
|
||||
end,
|
||||
},
|
||||
cmdline = {
|
||||
completion = { menu = { auto_show = true } },
|
||||
keymap = {
|
||||
["<NL>"] = { "select_and_accept" },
|
||||
},
|
||||
},
|
||||
sources = {
|
||||
default = { "avante", "lsp", "snippets", "buffer", "path" },
|
||||
default = { "avante", "lsp", "snippets", "copilot", "buffer", "path" },
|
||||
providers = {
|
||||
avante = {
|
||||
module = "blink-cmp-avante",
|
||||
@@ -75,16 +88,22 @@ return {
|
||||
module = "blink.cmp.sources.snippets",
|
||||
score_offset = 80,
|
||||
},
|
||||
copilot = {
|
||||
name = "copilot",
|
||||
module = "blink-copilot",
|
||||
score_offset = 70,
|
||||
async = true,
|
||||
},
|
||||
buffer = {
|
||||
name = "Buffer",
|
||||
enabled = true,
|
||||
module = "blink.cmp.sources.buffer",
|
||||
score_offset = 70,
|
||||
score_offset = 60,
|
||||
},
|
||||
path = {
|
||||
name = "Path",
|
||||
module = "blink.cmp.sources.path",
|
||||
score_offset = 3,
|
||||
score_offset = 10,
|
||||
opts = {
|
||||
trailing_slash = false,
|
||||
label_trailing_slash = true,
|
||||
|
||||
Reference in New Issue
Block a user