some blink adjustments

This commit is contained in:
Oliver Hartmann 2024-12-21 01:19:17 +01:00
parent 72154419eb
commit af6a028aa5

View File

@ -5,6 +5,7 @@ return {
dependencies = {
'rafamadriz/friendly-snippets',
'giuxtaposition/blink-cmp-copilot',
'L3MON4D3/LuaSnip',
{
'saghen/blink.compat',
-- 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
-- elsewhere in your config, without redefining it, via `opts_extend`
sources = {
default = { 'lsp', 'path', 'snippets', 'buffer', 'copilot', 'codeium' },
default = { 'lsp', 'path', 'luasnip', 'buffer', 'copilot', 'codeium' },
-- optionally disable cmdline completions
-- cmdline = {},
providers = {
@ -57,13 +58,14 @@ return {
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',
async = true
},
},
},
completion = {
list = {
selection = 'manual',
selection = 'auto_insert',
},
menu = {
max_height = 25,
@ -71,20 +73,29 @@ return {
padding = 1,
gap = 1,
-- treesitter = { 'lsp' },
-- columns = {
-- { 'kind_icon', width = { fill = true } },
-- { 'label', 'label_description', gap = 1, highlight = 'BlinkCmpLabelDescription' },
-- },
},
},
documentation = {
auto_show = true,
auto_show_delay_ms = 300,
window = {
border = 'padded'
}
},
},
-- 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
-- without having to redefine it