Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocompletion suggestions that should not show at the top is at the top instead of the convenient one. + a new Error. #391

Closed
2 tasks done
leet0rz opened this issue Nov 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@leet0rz
Copy link

leet0rz commented Nov 27, 2024

Make sure you have done the following

  • I have updated to the latest version of blink.cmp
  • I have read the README

Bug Description

643kO0N

As you can see from the picture printf is all the way at the bottom when it should be at the top as it is by far the most commonly used out of the ones we can see, I See this in other suggestions too where a lot of stuff with underscores will show up at the top meanwhile the stuff you are looking for are all at the bottom. Any quick fixes to this?

Edit: Also after updating to 0.6.1 I started getting this error:

Error executing vim.schedule lua callback: ...al/nvim-data/lazy/blink.cmp/lua/blink/cmp/fuzzy/init.lua:24: attempt to call field 'fuzzy_matched_indices' (a nil value)
stack traceback:
        ...al/nvim-data/lazy/blink.cmp/lua/blink/cmp/fuzzy/init.lua:24: in function 'fuzzy_matched_indices'
        .../lazy/blink.cmp/lua/blink/cmp/windows/render/context.lua:21: in function 'get_from_items'
        ...ata/lazy/blink.cmp/lua/blink/cmp/windows/render/init.lua:54: in function 'draw'
        ...ta/lazy/blink.cmp/lua/blink/cmp/windows/autocomplete.lua:111: in function 'open_with_items'
        ...ta/Local/nvim-data/lazy/blink.cmp/lua/blink/cmp/init.lua:57: in function <...ta/Local/nvim-data/lazy/blink.cmp/lua/blink/cmp/init.lua:51>

Same config.

Relevant configuration

"saghen/blink.cmp",
			lazy = false, -- lazy loading handled internally
			version = "v0.*",
			opts = {
				},
				highlight = {
					use_nvim_cmp_as_default = true,
				},
				nerd_font_variant = "mono",
				sources = {
					completion = {
						enabled_providers = {
							"lsp",
							"snippets",
							"path",
							-- 'buffer'
						},
					},
				},
				windows = {
					autocomplete = {
						min_width = 40,
						max_height = 20,
						border = "rounded",
					},
					documentation = {
						border = "rounded",
						auto_show = true,
					},
					signature_help = {
						border = "rounded",
					},
				},
 			},
		},

neovim version

NVIM v0.11.0-dev-1090+g99acc9de55 Build type: RelWithDebInfo LuaJIT 2.1.1727870382 Run "nvim -V1 -v" for more info

blink.cmp version: branch, tag, or commit

0.6.0

@leet0rz leet0rz added the bug Something isn't working label Nov 27, 2024
@Saghen
Copy link
Owner

Saghen commented Nov 27, 2024

Duplicate of #365 and #68

@Saghen Saghen closed this as not planned Won't fix, can't repro, duplicate, stale Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants