Skip to content

blink.cmp removes #+prefix when completing org directives #977

@seflue

Description

@seflue

Bug Description

When using autocompletion for org directives with blink.cmp, the #+ prefix is incorrectly removed from completed directives.

Steps to Reproduce

  1. Type #+fi in an org file
  2. Trigger completion with blink.cmp
  3. Select #+filetype from the completion menu

Expected Behavior

The completion should insert #+filetype

Actual Behavior

The completion inserts just filetype (the #+ prefix is removed)

Additional Info

  • This only happens when both # and + are typed
  • Typing just # works correctly
  • didn't occur with nvim-cmp
  • nvim-orgmode version: latest
  • blink.cmp version: 1.2.0
  • Neovim version: 0.11.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions