-
Hey! I've stumbled upon this issue a few times where I feel I am typing a better match for what I want, but suddenly blink switches it out for something that matches worse. It's probably a configuration issue, but I am not seeing it. Any help would be appreciated 🙏
I've also tried enabling the "exact" options in sort, but doesn't appear to change behaviour in this case. Here is my options: return function()
require("blink.cmp").setup({
completion = {
accept = {
auto_brackets = {
enabled = true,
},
},
documentation = {
auto_show = true,
auto_show_delay_ms = 200,
window = {
border = "single",
},
},
ghost_text = {
enabled = true,
},
menu = {
border = "single",
draw = {
columns = {
{ "label", gap = 10 },
{ "kind_icon", gap = 1 },
{ "kind" },
{ "label_description" },
{ "source_name" },
},
gap = 1,
treesitter = { "lsp" },
},
},
list = {
selection = { preselect = true, auto_insert = false },
},
},
signature = { enabled = true, window = { border = "single" } },
fuzzy = {
sorts = {
-- "exact",
"score",
"sort_text",
},
},
sources = {
default = { "avante", "snippets", "lsp", "path", "buffer" },
providers = {
avante = {
module = "blink-cmp-avante",
name = "Avante",
},
snippets = {
min_keyword_length = 2,
score_offset = 2,
},
lsp = {
min_keyword_length = 0,
score_offset = 15,
name = "LSP",
module = "blink.cmp.sources.lsp",
},
path = {
min_keyword_length = 3,
score_offset = 2,
},
buffer = {
min_keyword_length = 3,
score_offset = -10,
opts = {
get_bufnrs = function() return { 0 } end,
},
},
},
},
snippets = { preset = "luasnip" },
appearance = { nerd_font_variant = "normal" },
keymap = {
preset = "none",
["<C-space>"] = { "show", "show_documentation", "hide_documentation" },
["<C-e>"] = { "hide" },
["<Tab>"] = { "select_and_accept", "fallback" },
["<Up>"] = { "select_prev", "fallback" },
["<Down>"] = { "select_next", "fallback" },
["<C-p>"] = { "select_prev", "fallback_to_mappings" },
["<C-n>"] = { "select_next", "fallback_to_mappings" },
["<C-f>"] = { "snippet_forward", "fallback" },
["<C-b>"] = { "snippet_backward", "fallback" },
["<C-k>"] = { "show_signature", "hide_signature", "fallback" },
},
})
require("luasnip.loaders.from_vscode").lazy_load()
end |
Beta Was this translation helpful? Give feedback.
Answered by
Saghen
Jun 30, 2025
Replies: 1 comment 2 replies
-
Fixed as of 2096cf1, haven't made a release yet, will do soon! |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
TimVosch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixed as of 2096cf1, haven't made a release yet, will do soon!