Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fuzzy completeopt option doesn't seem to respect "match at beginning" and puts prefixed words above #34101

Copy link
Copy link
Open
@nadako

Description

@nadako
Issue body actions

Problem

Fuzzy matching in completion (completeopt including fuzzy) doesn't prioritize entries that begin with the entered sequence, unless it's a full word, see video:

alacritty_k0KOZi5iLc.mp4

Steps to reproduce

  • nvim --clean
  • :set completeopt=menuone,noselect,fuzzy

enter:

SomeWord
PrefixSomeWord

trigger keyword completion at a blank line (CTRL+X CTRL+N) and enter somewor, observe that PrefixSomeWord is above SomeWord in the completion menu

Expected behavior

The doc mention that "Matches at the beginning of a word" is a criteria for scoring, so unless I'm misunderstanding it, I would expect entries that start with the entered sequence be scored higher.

Nvim version (nvim -v)

NVIM v0.11.1

Vim (not Nvim) behaves the same?

no idea

Operating system/version

Windows 11

Terminal name/version

Alacritty 0.15.1

$TERM environment variable

xterm-256color

Installation

Scoop

ddad431 and przepompownia

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-vimwrong behavior inherited from vimwrong behavior inherited from vimcompletionNvim built-in (omni)completionNvim built-in (omni)completion

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.