switch to blink
This commit is contained in:
parent
dc4e43aec4
commit
c94599346a
@ -2,7 +2,19 @@ return {
|
|||||||
'saghen/blink.cmp',
|
'saghen/blink.cmp',
|
||||||
lazy = false, -- lazy loading handled internally
|
lazy = false, -- lazy loading handled internally
|
||||||
-- optional: provides snippets for the snippet source
|
-- 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
|
-- use a release tag to download pre-built binaries
|
||||||
version = 'v0.*',
|
version = 'v0.*',
|
||||||
@ -32,14 +44,26 @@ return {
|
|||||||
-- default list of enabled providers defined so that you can extend it
|
-- default list of enabled providers defined so that you can extend it
|
||||||
-- elsewhere in your config, without redefining it, via `opts_extend`
|
-- elsewhere in your config, without redefining it, via `opts_extend`
|
||||||
sources = {
|
sources = {
|
||||||
default = { 'lsp', 'path', 'snippets', 'buffer' },
|
default = { 'lsp', 'path', 'snippets', 'buffer', 'copilot', 'codeium' },
|
||||||
-- optionally disable cmdline completions
|
-- optionally disable cmdline completions
|
||||||
-- cmdline = {},
|
-- 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 = {
|
completion = {
|
||||||
list = {
|
list = {
|
||||||
selection = 'auto_insert',
|
selection = 'manual',
|
||||||
},
|
},
|
||||||
menu = {
|
menu = {
|
||||||
max_height = 25,
|
max_height = 25,
|
||||||
@ -55,16 +79,15 @@ return {
|
|||||||
},
|
},
|
||||||
documentation = {
|
documentation = {
|
||||||
auto_show = true,
|
auto_show = true,
|
||||||
auto_show_delay = 300,
|
auto_show_delay_ms = 300,
|
||||||
},
|
},
|
||||||
signature = { enabled = true }
|
|
||||||
},
|
},
|
||||||
|
|
||||||
-- experimental signature help support
|
-- experimental signature help support
|
||||||
-- signature = { enabled = true }
|
signature = { enabled = true }
|
||||||
},
|
},
|
||||||
-- allows extending the providers array elsewhere in your config
|
-- allows extending the providers array elsewhere in your config
|
||||||
-- without having to redefine it
|
-- without having to redefine it
|
||||||
opts_extend = { 'sources.default' },
|
opts_extend = { 'sources.default' },
|
||||||
enabled = false
|
enabled = true
|
||||||
}
|
}
|
||||||
|
@ -213,4 +213,5 @@ return {
|
|||||||
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
|
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
|
||||||
cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done({ map_char = { tex = '' } }))
|
cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done({ map_char = { tex = '' } }))
|
||||||
end,
|
end,
|
||||||
|
enabled = false
|
||||||
}
|
}
|
||||||
|
@ -2,9 +2,9 @@ return {
|
|||||||
'Exafunction/codeium.nvim',
|
'Exafunction/codeium.nvim',
|
||||||
requires = {
|
requires = {
|
||||||
'nvim-lua/plenary.nvim',
|
'nvim-lua/plenary.nvim',
|
||||||
'hrsh7th/nvim-cmp',
|
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require('codeium').setup({})
|
require('codeium').setup({})
|
||||||
end,
|
end,
|
||||||
|
enabled = true
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,6 @@ return {
|
|||||||
suggestion = { enabled = false, auto_trigger = false },
|
suggestion = { enabled = false, auto_trigger = false },
|
||||||
panel = { enabled = false },
|
panel = { enabled = false },
|
||||||
})
|
})
|
||||||
require("copilot_cmp").setup()
|
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,8 +119,8 @@ return {
|
|||||||
require('nvim-navic').setup({})
|
require('nvim-navic').setup({})
|
||||||
|
|
||||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||||
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)
|
-- capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)
|
||||||
-- capabilities = require('blink.cmp').get_lsp_capabilities(capabilities)
|
capabilities = require('blink.cmp').get_lsp_capabilities(capabilities)
|
||||||
capabilities.workspace = {
|
capabilities.workspace = {
|
||||||
didChangeWatchedFiles = {
|
didChangeWatchedFiles = {
|
||||||
dynamicRegistration = true,
|
dynamicRegistration = true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user