Files
nvim-config/lua/plugins/autocompletion.lua
T
Aaron Gorodetzky c4c7f16d2c Replace nvim-cmp with blink.cmp
Replace nvim-cmp and 5 cmp-* plugins with saghen/blink.cmp (v1 stable).
blink.cmp bundles LSP, buffer, path, cmdline completion in one plugin
with async fuzzy matching and typo resistance.

- Preserves keybindings: C-k/C-j nav, C-Space show, C-e abort, CR confirm
- No snippets (preset = 'none')
- Signature help enabled
- Cmdline completion enabled
- LazyDev integrated as blink source provider
- _shared.lua capabilities updated to use blink.get_lsp_capabilities()
- Removes cmp-nvim-lsp dependency from lsp.lua
2026-09-14 10:18:31 -04:00

73 lines
1.5 KiB
Lua

return {
'saghen/blink.cmp',
version = '1.*',
dependencies = {
'folke/lazydev.nvim',
},
---@module 'blink.cmp'
---@type blink.cmp.Config
opts = {
keymap = {
preset = 'none',
['<C-k>'] = {'select_prev', 'fallback',},
['<C-j>'] = {'select_next', 'fallback',},
['<C-Space>'] = {'show',},
['<C-e>'] = {'cancel', 'fallback',},
['<CR>'] = {'accept', 'fallback',},
['<C-u>'] = {'scroll_documentation_up', 'fallback',},
['<C-d>'] = {'scroll_documentation_down', 'fallback',},
},
appearance = {
nerd_font_variant = 'mono',
},
completion = {
accept = {
auto_brackets = {enabled = false,},
},
documentation = {
auto_show = true,
auto_show_delay_ms = 200,
},
list = {
selection = {preselect = false, auto_insert = false,},
},
menu = {
border = 'rounded',
draw = {
columns = {
{'kind_icon',},
{'label', 'label_description', gap = 1,},
{'kind',},
},
},
},
},
signature = {
enabled = true,
},
snippets = {
preset = 'none',
},
sources = {
default = {'lazydev', 'lsp', 'path', 'buffer',},
providers = {
lazydev = {
name = "LazyDev",
module = "lazydev.integrations.blink",
score_offset = 100,
},
},
},
cmdline = {
enabled = true,
},
},
}