nvim-mini / nvim-mini/mini.nvim

Surround with new lines

Open
#2,488 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Contributing guidelines
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.