Files
dotfiles/nvim/.config/nvim/lua/plugins/blink.lua
2024-11-07 14:54:06 -05:00

34 lines
821 B
Lua

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 = -1 },
},
{ { 'blink.cmp.sources.buffer' } },
}
},
}