switch to blink
This commit is contained in:
@ -2,7 +2,19 @@ return {
|
||||
'saghen/blink.cmp',
|
||||
lazy = false, -- lazy loading handled internally
|
||||
-- optional: provides snippets for the snippet source
|
||||
dependencies = 'rafamadriz/friendly-snippets',
|
||||
dependencies = {
|
||||
'rafamadriz/friendly-snippets',
|
||||
'giuxtaposition/blink-cmp-copilot',
|
||||
{
|
||||
'saghen/blink.compat',
|
||||
-- use the latest release, via version = '*', if you also use the latest release for blink.cmp
|
||||
version = '*',
|
||||
-- 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 = {},
|
||||
},
|
||||
},
|
||||
|
||||
-- use a release tag to download pre-built binaries
|
||||
version = 'v0.*',
|
||||
@ -32,14 +44,26 @@ return {
|
||||
-- default list of enabled providers defined so that you can extend it
|
||||
-- elsewhere in your config, without redefining it, via `opts_extend`
|
||||
sources = {
|
||||
default = { 'lsp', 'path', 'snippets', 'buffer' },
|
||||
default = { 'lsp', 'path', 'snippets', 'buffer', 'copilot', 'codeium' },
|
||||
-- optionally disable cmdline completions
|
||||
-- cmdline = {},
|
||||
providers = {
|
||||
copilot = {
|
||||
name = 'copilot',
|
||||
module = 'blink-cmp-copilot',
|
||||
score_offset = 100,
|
||||
async = true,
|
||||
},
|
||||
codeium = { -- TODO: Replace with https://github.com/Exafunction/codeium.nvim/pull/264
|
||||
name = 'codeium', -- IMPORTANT: use the same name as you would for nvim-cmp
|
||||
module = 'blink.compat.source',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
completion = {
|
||||
list = {
|
||||
selection = 'auto_insert',
|
||||
selection = 'manual',
|
||||
},
|
||||
menu = {
|
||||
max_height = 25,
|
||||
@ -55,16 +79,15 @@ return {
|
||||
},
|
||||
documentation = {
|
||||
auto_show = true,
|
||||
auto_show_delay = 300,
|
||||
auto_show_delay_ms = 300,
|
||||
},
|
||||
signature = { enabled = true }
|
||||
},
|
||||
|
||||
-- experimental signature help support
|
||||
-- signature = { enabled = true }
|
||||
signature = { enabled = true }
|
||||
},
|
||||
-- allows extending the providers array elsewhere in your config
|
||||
-- without having to redefine it
|
||||
opts_extend = { 'sources.default' },
|
||||
enabled = false
|
||||
enabled = true
|
||||
}
|
||||
|
Reference in New Issue
Block a user