up
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
-- Autocompletion
|
||||
|
||||
return {
|
||||
{
|
||||
'saghen/blink.compat',
|
||||
-- use v2.* for blink.cmp v1.*
|
||||
version = '2.*',
|
||||
-- lazy.nvim will automatically load the plugin when it's required by blink.cmp
|
||||
lazy = true,
|
||||
-- make sure to set opts so that lazy.nvim calls blink.compat's setup
|
||||
opts = {},
|
||||
},
|
||||
{ -- Autocompletion
|
||||
'saghen/blink.cmp',
|
||||
event = 'VimEnter',
|
||||
@@ -32,7 +41,13 @@ return {
|
||||
},
|
||||
opts = {},
|
||||
},
|
||||
'folke/lazydev.nvim',
|
||||
-- R-cmp
|
||||
{
|
||||
'R-nvim/cmp-r',
|
||||
},
|
||||
{
|
||||
'folke/lazydev.nvim',
|
||||
},
|
||||
},
|
||||
--- @module 'blink.cmp'
|
||||
--- @type blink.cmp.Config
|
||||
@@ -78,9 +93,10 @@ return {
|
||||
},
|
||||
|
||||
sources = {
|
||||
default = { 'lsp', 'path', 'snippets', 'lazydev' },
|
||||
default = { 'lsp', 'path', 'snippets', 'lazydev', 'cmp_r' },
|
||||
providers = {
|
||||
lazydev = { module = 'lazydev.integrations.blink', score_offset = 100 },
|
||||
cmp_r = { module = 'blink.compat.source', score_offset = 3 },
|
||||
},
|
||||
},
|
||||
|
||||
@@ -99,4 +115,4 @@ return {
|
||||
signature = { enabled = true },
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user