Moved CMP to Blink. Some issues with buffer text, but will keep tweaking config. Removed headlines for the time being as it was causing a lot of errors.

This commit is contained in:
Norm Rasmussen
2024-10-10 17:27:37 -04:00
parent c9266d82c6
commit db34ad9ff9
10 changed files with 291 additions and 129 deletions

View File

@ -0,0 +1,35 @@
return {
'saghen/blink.cmp',
lazy = false, -- lazy loading handled internally
-- optional: provides snippets for the snippet source
dependencies = {
'rafamadriz/friendly-snippets',
'L3MON4D3/LuaSnip',
},
version = 'v0.*',
opts = {
highlight = {
use_nvim_cmp_as_default = true,
nerd_font_variant = 'normal',
}
},
trigger = {
completion = {
keyword_regex = '[%w_\\-]',
blocked_trigger_characters = { ' ', '\n', '\t' },
show_on_insert_on_trigger_character = true,
}
},
sources = {
providers = {
{
{ 'blink.cmp.sources.lsp' },
{ 'blink.cmp.sources.path' },
{ 'blink.cmp.sources.snippets', score_offset = -3 },
},
{ { 'blink.cmp.sources.buffer' } },
}
},
}