Minimal automatic list continuing for ordered and unordered lists for nvim in lua
(cant be bothered to search for the link, this was in my clipboard so yeah)
supports:
- tabs
- autodeletes empty list bullets
- indented lists with and
doesn't support:
- renumbering of lists
If your lua config is organised, you should have a file for options, for mappings etc. Put the top function in some function file, and put everything below the "all of the above" comment into a mappings and autocommands file. You don't have to 'require' the file with the functions in the init, just "require('func').autolist()".
credit to https://gist.github.com/sedm0784/dffda43bcfb4728f8e90
edit: wrong link