This commit is contained in:
sankalp committed 2025-06-02 15:43:05 +05:45
1 parent 2c6982ecdd
commit b6e0e9f63c
35 files changed
+1155 -1236

No files matched your search

+28 -2
View File
@@ -10,8 +10,14 @@ blink.setup({
['<C-space>'] = { 'show', 'hide' },
['<C-y>'] = { 'show_documentation', 'hide_documentation' },
},
snippets = { preset = 'luasnip' },
completion = {
list = { selection = { preselect = false, auto_insert = true } },
list = {
selection = {
auto_insert = true,
preselect = true,
},
},
menu = { border = 'rounded' },
documentation = { window = { border = 'rounded' } },
},
@@ -24,8 +30,28 @@ blink.setup({
kind_icons = icons.kind,
},
sources = {
default = { 'lazydev', 'lsp', 'path', 'snippets', 'buffer' },
default = { 'avante', 'lazydev', 'lsp', 'path', 'snippets', 'buffer', 'copilot' },
providers = {
avante = {
module = 'blink-cmp-avante',
name = 'Avante',
opts = {},
},
copilot = {
name = 'copilot',
module = 'blink-cmp-copilot',
score_offset = 90,
async = true,
transform_items = function(_, items)
local CompletionItemKind = require('blink.cmp.types').CompletionItemKind
local kind_idx = #CompletionItemKind + 1
CompletionItemKind[kind_idx] = 'Copilot'
for _, item in ipairs(items) do
item.kind = kind_idx
end
return items
end,
},
lazydev = {
name = 'LazyDev',
module = 'lazydev.integrations.blink',