nvim-mini / nvim-mini/mini.nvim

Trigger abbreviations when inserting pair signs

Open
#1,259 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request mini.pairs
Dominant language
Lua
Stars
9.5k
Forks
310
Avg merge
4h 16m
Merged PRs (30d)
1

Description

Contributing guidelines
Module(s)

mini.pairs

Description

mini.pairs remaps all pair signs in insert mode, which breaks the default abbreviation expansion in Neovim.
I think one simple way to solve this would be to add <C-]> at the beginning of mappings in the MiniPairs.open function to manually trigger abbreviation expansion.
Would this modification be compatible with the rest of the plugin ?
Thanks !

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the mini.pairs module and the MiniPairs.open entry point, focusing on how pair signs are mapped in insert mode. Check how Neovim's default abbreviation expansion interacts with those mappings, then verify that the proposed behavior remains compatible with the rest of the plugin. Done means abbreviations expand correctly when inserting pair signs without breaking pairing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
developer-experience
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.