Skip to content

[mini.completion] "x" incorrectly added to React prop when accepting suggestion #2045

@lukeramljak

Description

@lukeramljak

Contributing guidelines

Module(s)

mini.completion

Neovim version

0.12 (!at least latest Nightly build!)

Description

When completing a react prop name using mini.completion, an "x" character is sometimes inserted at the beginning of the prop.

Expected behaviour is that an "x" should not be inserted.

Reproduction

nvim version: v0.12.0-dev-1351+g8151fc59cf
vtsls version: 0.2.9

  1. Clone the example repo with a minimal neovim config and sample react files: https://github.com/lukeramljak/nvim-completion-bug
  2. Install the vtsls language server
  3. Open react/App.tsx from the repo
  4. Add the missing title prop to the component as per the screen recording below
  5. Accept the completion suggestion for title using <c-y> or <cr>
Screen.Recording.2025-10-03.at.10.12.21.pm.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions