nvim-mini / nvim-mini/mini.nvim
Trigger abbreviations when inserting pair signs
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 9.5k
- Forks
- 310
- Avg merge
- 4h 16m
- Merged PRs (30d)
- 1
Description
Contributing guidelines
- I have read CONTRIBUTING.md
- I have read CODE_OF_CONDUCT.md
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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