nvim-mini / nvim-mini/mini.nvim
Surround with new lines
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.surround
Description
It would be cool to be able to surround using Line breaks/feeds/Carriage returns by using the <C-v> bind and then inputting the return key. At the moment it just inputs ^M literally. AFAIK currently the only way to do this is to make your own custom surround
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 with the mini.surround module and trace how the input is handled when entering a surrounding text. Confirm how a return key is currently converted to literal ^M, then make the behavior produce line breaks, feeds, or carriage returns as intended and verify the existing surround behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, vim
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100