some blink adjustments
This commit is contained in:
parent
72154419eb
commit
af6a028aa5
@ -5,6 +5,7 @@ return {
|
|||||||
dependencies = {
|
dependencies = {
|
||||||
'rafamadriz/friendly-snippets',
|
'rafamadriz/friendly-snippets',
|
||||||
'giuxtaposition/blink-cmp-copilot',
|
'giuxtaposition/blink-cmp-copilot',
|
||||||
|
'L3MON4D3/LuaSnip',
|
||||||
{
|
{
|
||||||
'saghen/blink.compat',
|
'saghen/blink.compat',
|
||||||
-- use the latest release, via version = '*', if you also use the latest release for blink.cmp
|
-- use the latest release, via version = '*', if you also use the latest release for blink.cmp
|
||||||
@ -44,7 +45,7 @@ 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', 'copilot', 'codeium' },
|
default = { 'lsp', 'path', 'luasnip', 'buffer', 'copilot', 'codeium' },
|
||||||
-- optionally disable cmdline completions
|
-- optionally disable cmdline completions
|
||||||
-- cmdline = {},
|
-- cmdline = {},
|
||||||
providers = {
|
providers = {
|
||||||
@ -57,13 +58,14 @@ return {
|
|||||||
codeium = { -- TODO: Replace with https://github.com/Exafunction/codeium.nvim/pull/264
|
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
|
name = 'codeium', -- IMPORTANT: use the same name as you would for nvim-cmp
|
||||||
module = 'blink.compat.source',
|
module = 'blink.compat.source',
|
||||||
|
async = true
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
completion = {
|
completion = {
|
||||||
list = {
|
list = {
|
||||||
selection = 'manual',
|
selection = 'auto_insert',
|
||||||
},
|
},
|
||||||
menu = {
|
menu = {
|
||||||
max_height = 25,
|
max_height = 25,
|
||||||
@ -71,20 +73,29 @@ return {
|
|||||||
padding = 1,
|
padding = 1,
|
||||||
gap = 1,
|
gap = 1,
|
||||||
-- treesitter = { 'lsp' },
|
-- treesitter = { 'lsp' },
|
||||||
-- columns = {
|
|
||||||
-- { 'kind_icon', width = { fill = true } },
|
|
||||||
-- { 'label', 'label_description', gap = 1, highlight = 'BlinkCmpLabelDescription' },
|
|
||||||
-- },
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
documentation = {
|
documentation = {
|
||||||
auto_show = true,
|
auto_show = true,
|
||||||
auto_show_delay_ms = 300,
|
auto_show_delay_ms = 300,
|
||||||
|
window = {
|
||||||
|
border = 'padded'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
-- experimental signature help support
|
-- experimental signature help support
|
||||||
signature = { enabled = true }
|
signature = { enabled = true },
|
||||||
|
snippets = {
|
||||||
|
expand = function(snippet) require('luasnip').lsp_expand(snippet) end,
|
||||||
|
active = function(filter)
|
||||||
|
if filter and filter.direction then
|
||||||
|
return require('luasnip').jumpable(filter.direction)
|
||||||
|
end
|
||||||
|
return require('luasnip').in_snippet()
|
||||||
|
end,
|
||||||
|
jump = function(direction) require('luasnip').jump(direction) end,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
-- 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user