56 lines
1.3 KiB
Lua
56 lines
1.3 KiB
Lua
return {
|
|
{
|
|
'saghen/blink.cmp',
|
|
version = 'v0.13.1',
|
|
event = 'LspAttach',
|
|
dependencies = {
|
|
'Kaiser-Yang/blink-cmp-avante',
|
|
'hrsh7th/nvim-cmp',
|
|
'L3MON4D3/LuaSnip',
|
|
'saadparwaiz1/cmp_luasnip',
|
|
'hrsh7th/cmp-nvim-lsp',
|
|
'hrsh7th/cmp-nvim-lua',
|
|
'hrsh7th/cmp-path',
|
|
'hrsh7th/cmp-buffer',
|
|
},
|
|
opts = {
|
|
keymap = {
|
|
preset = 'enter',
|
|
['<c-j>'] = { 'select_next', 'fallback' },
|
|
['<c-k>'] = { 'select_prev', 'fallback' },
|
|
['<c-l>'] = { 'hide', 'fallback' },
|
|
},
|
|
cmdline = { enabled = false },
|
|
term = { enabled = false },
|
|
|
|
completion = {
|
|
accept = {
|
|
auto_brackets = { enabled = true },
|
|
},
|
|
documentation = { auto_show = true },
|
|
},
|
|
|
|
appearance = {
|
|
use_nvim_cmp_as_default = true,
|
|
nerd_font_variant = 'mono',
|
|
},
|
|
|
|
sources = {
|
|
default = { 'avante', 'lsp', 'path', 'snippets', 'buffer' },
|
|
per_filetype = {
|
|
codecompanion = { 'codecompanion' },
|
|
},
|
|
providers = {
|
|
avante = {
|
|
module = 'blink-cmp-avante',
|
|
name = 'Avante',
|
|
opts = {},
|
|
},
|
|
},
|
|
},
|
|
snippets = { preset = 'luasnip' },
|
|
},
|
|
opts_extend = { 'sources.default' },
|
|
},
|
|
}
|