wrapping.nvim
wrapping.nvim copied to clipboard
Add indicators for lines that have been wrapped
I think a nice feature to add would be indicators if a line is wrapped.
Non-Wrapped
1 public static void main(String[] args) {
2 System.out.println("Wow. Wrapping text is so, so cool")
3 }
Wrapped
1 public static void main(String[] args) {
2 System.out.println("Wow. Wrapping text
is so, so cool")
3 }
Wrapped Indicated 1st Way
1 public static void main(String[] args) {
2 System.out.println("Wow. Wrapping text
is so, so cool")
3 }
Wrapped Indicated 2nd Way
1 public static void main(String[] args) {
2 System.out.println("Wow. Wrapping text
is so, so cool")
3 }
I used this type of wrapping in Jupyter Notebook a while ago in school, and I found it to be the best way to recognize a wrapped line (Jupyter Notebook uses the 2nd way I proposed). If for some reason you can't see it, that icon is NerdFont md-arrow_right_bottom.
I think there could be options for indicator icon, color, and whether or not to put it in the first character spot on the new line where the wrapped line starts (like in my 1st example), or under the first character under the line that is being wrapped (like in my 2nd example) .
I'd totally make this, but I'm useless at Lua :)