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

cmdline: Multi-argument completions include duplicate prefix #555

Closed
2 tasks done
b0o opened this issue Dec 14, 2024 · 2 comments
Closed
2 tasks done

cmdline: Multi-argument completions include duplicate prefix #555

b0o opened this issue Dec 14, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@b0o
Copy link
Contributor

b0o commented Dec 14, 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

Accepting a completion for certain command arguments results in the prefix being prepended to the completion text. For example:

With :lua:

  1. initial: :lua vim.no
  2. accept completion for vim.notify
  3. actual: :lua vim.vim.notify
  4. expected: :lua vim.notify

With :set:

  1. initial: :set ft=lu
  2. accept completion for lua
  3. actual: :set ft=ft=lua
  4. expected: :set ft=lua

Similar behavior when completing filepaths e.g. :e /etc, lua expression inspecting e.g. :=vim.notify, and probably others.

Relevant configuration

Default settings. Tested with default, super-tab, and enter cmdline mappings presets.

neovim version

NVIM v0.11.0-dev-1273+g7a367c6967

blink.cmp version: branch, tag, or commit

217f670

@b0o b0o added the bug Something isn't working label Dec 14, 2024
@b0o b0o changed the title cmdline: Suggestions for :lua and := include prefix cmdline: Completions for :lua and := include prefix Dec 14, 2024
@b0o b0o changed the title cmdline: Completions for :lua and := include prefix cmdline: Multi-argument completions include prefix Dec 14, 2024
@b0o b0o changed the title cmdline: Multi-argument completions include prefix cmdline: Multi-argument completions include duplicate prefix Dec 14, 2024
@the-fuckin-nobody
Copy link

This is a duplicate of #46 and #541, I guess.

@b0o
Copy link
Contributor Author

b0o commented Dec 14, 2024

Ah, thanks, I should have checked more closely.

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