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

Completing after a . in the command line does not replace the prefix #1075

Closed
2 tasks done
oddlama opened this issue Jan 24, 2025 · 0 comments
Closed
2 tasks done

Completing after a . in the command line does not replace the prefix #1075

oddlama opened this issue Jan 24, 2025 · 0 comments
Labels
bug Something isn't working cmdline Related to the command line

Comments

@oddlama
Copy link

oddlama commented Jan 24, 2025

Make sure you have done the following

  • Updated to the latest version of blink.cmp
  • Searched for existing issues and documentation (try <C-k> on https://cmp.saghen.dev)

Bug Description

When I try to complete a buffer after typing a part of the filename, the completion will not replace the prefix if it ends with a dot . resulting in a wrong filename:

Example - I have previously had a file init.lua open, and want to switch to it:

:b init<TAB><CR>
--> results in:
:b /path/to/init.lua

:b init.<TAB><CR>
--> reults in:
:b init./path/to/init.lua

Relevant configuration

{
    keymap = "enter",
    completion = { documentation = { auto_show = true }, list = { selection = { auto_insert = true, preselect = false } } },
    sources = {
        default = { "lsp", "path", "snippets", "emoji", "buffer" },
        providers = { emoji = { module = "blink.compat.source", name = "emoji" } },
    },
}

neovim version

v0.10.3

blink.cmp version

v0.10.0

@oddlama oddlama added the bug Something isn't working label Jan 24, 2025
@Saghen Saghen closed this as completed in 9854978 Jan 24, 2025
@Saghen Saghen added the cmdline Related to the command line label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cmdline Related to the command line
Projects
None yet
Development

No branches or pull requests

2 participants