gaoDean / autolist.nvim

Automatic list continuation and formatting for neovim, powered by lua
MIT License
248 stars 6 forks source link

Feature request: Maintain spaces between list marker and text #68

Closed pitkling closed 1 year ago

pitkling commented 1 year ago

Thanks for the great plugin! I have a (hopefully small?) feature request. I often come across files that have a certain number of spaces between the list marker and the text (e.g., some review forms in academic writing). It would be great if autolist would maintain the number of spaces between the list marker and the text. For example, pressing enter in the following

*   some text|

should result in

*   some text
*   |

instead of

*   some text
* |

(with | marking the cursor position).

gaoDean commented 1 year ago

Shouldn't be too hard, I'll just fix #33 before this because that seems more important.

pitkling commented 1 year ago

Just FYI: Works perfectly, thanks! :)