Skip to content

Auto‑trigger doesn’t open completion menu for coc‑source‑mediawiki unless coc#start() is called #5539

Description

@vitaly-zdanevich

Result from CocInfo

versions

vim version: VIM - Vi IMproved 9.1 9011652
node version: v22.13.1
coc.nvim version: 0.0.82-13d041620 2025-07-31 16:32:31 +0800
coc.nvim directory: /home/vitaly/.config/vim/pack/lsp/start/coc
term: dumb
platform: linux

Log of coc.nvim

2026-02-02T15:43:03.145 INFO (pid:17933) [attach] - receive notification: updateConfig [ 'coc', { source: { mediawiki: [Object] } } ]
2026-02-02T15:43:03.156 INFO (pid:17933) [attach] - receive notification: updateConfig [ 'coc', { source: { mediawiki: [Object] } } ]
2026-02-02T15:43:03.232 INFO (pid:17933) [attach] - receive notification: updateConfig [ 'coc', { source: { mediawiki: [Object] } } ]
2026-02-02T15:43:03.359 INFO (pid:17933) [attach] - receive notification: updateConfig [ 'coc', { source: { mediawiki: [Object] } } ]
2026-02-02T15:43:03.507 INFO (pid:17933) [plugin] - coc.nvim initialized with node: v22.13.1 after 398
2026-02-02T15:51:33.105 INFO (pid:17933) [attach] - Request action: stopCompletion [ '' ]

Actually my terminal is Kitty - not sure what you mean by dump.

Describe the bug

I have a problem with https://github.com/m-pilia/vim-mediawiki: sometimes autocompletion after double square brackets is not working.

Reproduce the bug

  1. Install vim-mediawiki by cloning into vim/pack/language/start/mediawiki
  2. Create a file Armies_of_exigo.mw with such content:
|title = Armies of Exigo
|image = Armies of Exigo.jpg
|developer = [[Black Hole Entertainment]]
|publisher = [[Cinergi Interactive]]
|designer =
|composer = [[Jeremy Soule]]
|engine =
|released = {{vgrelease|NA|November 30, 2004}}
|genre = [[Real-time strategy]]
|modes = [[Single-player]], [[Multiplayer video game|multiplayer]]
|platforms = [[Microsoft Windows]] 
}}

'''''Armies of Exigo''''' is a [[real-time strategy]] [[video game]] for [[Microsoft Windows]]. The game was developed by [[Black Hole Entertainment]], published by [[Cinergi Interactive]] and distributed by [[Electronic Arts]]. One unique aspect of the game is that it has an underground mode. This makes the game more challenging as the player has to work on two fronts and might have an army come from an unexpected area.
  1. Type [[Microso to trigger vim-mediawiki autocompletion
  2. You will see no autocompletion from vim-mediawiki
  3. Run :call coc#refresh() -> completion appear

I tried with mini.vim

My workaround - add to config

autocmd InsertCharPre *.mw,*.mediawiki call coc#start()

It looks like because vim-mediawiki is non-LSP so coc heuristics about when to start can be improved.

I created the issue in the plugin repo because I am not sure where is the problem.

2026feb03tue--08-01-15.webm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions