Skip to content

Commit

Permalink
fix(blink-cmp): update blink.cmp to v0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Jan 8, 2025
1 parent 94c746e commit bce98bd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lua/astrocommunity/completion/blink-cmp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ return {
"Saghen/blink.cmp",
event = { "InsertEnter", "CmdlineEnter" },
version = "0.*",
dependencies = { "rafamadriz/friendly-snippets" },
opts_extend = { "sources.default", "sources.cmdline" },
opts = {
-- remember to enable your providers here
Expand Down Expand Up @@ -96,7 +95,7 @@ return {
},
},
completion = {
list = { selection = function(ctx) return ctx.mode == "cmdline" and "auto_insert" or "preselect" end },
list = { selection = { preselect = false, auto_insert = true } },
menu = {
auto_show = function(ctx) return ctx.mode ~= "cmdline" end,
border = "rounded",
Expand Down Expand Up @@ -136,6 +135,11 @@ return {
},
},
specs = {
{
"L3MON4D3/LuaSnip",
optional = true,
specs = { { "Saghen/blink.cmp", opts = { snippets = { preset = "luasnip" } } } },
},
{
"AstroNvim/astrolsp",
optional = true,
Expand Down Expand Up @@ -175,6 +179,5 @@ return {
-- disable built in completion plugins
{ "hrsh7th/nvim-cmp", enabled = false },
{ "rcarriga/cmp-dap", enabled = false },
{ "L3MON4D3/LuaSnip", enabled = false },
},
}

0 comments on commit bce98bd

Please sign in to comment.