Skip to content

Commit

Permalink
feat(blink.cmp): enable cmdline auto-complete for blink.cmp
Browse files Browse the repository at this point in the history
  • Loading branch information
linrongbin16 committed Dec 24, 2024
1 parent f910d60 commit 143fbad
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lua/configs/saghen/blink-cmp/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,19 @@ require("blink.cmp").setup({
end,
},
completion = {
list = {
-- Use "auto_insert" for cmdline, otherwise use "preselect".
selection = function(ctx)
return ctx.mode == "cmdline" and "auto_insert" or "preselect"
end,
},
accept = { auto_brackets = { enabled = true } },
documentation = { auto_show = true },
},
sources = {
-- Disable cmdline completions
cmdline = {},
min_keyword_length = function()
return 1
end,
},
signature = {
enabled = true,
Expand Down

0 comments on commit 143fbad

Please sign in to comment.