gaoDean / autolist.nvim

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

AutolistRecalculate removes bullets after markdown heading #85

Open hisbaan opened 10 months ago

hisbaan commented 10 months ago

In a markdown file with no space between the previous text/start of file, the markdown heading, and the list below the heading, the bullets of the list are removed when running AutolistRecalculate

We start with a file:

# This is a test
- this is a test
- this is a test

Then running AutolistRecalculate we get

# This is a test
 this is a test
 this is a test
click here for config ```lua return { "gaoDean/autolist.nvim", ft = { "markdown" }, config = function() local list_patterns = { unordered = "[-+]", -- - + digit = "%d+[.)]", -- 1. 2. 3. ... ascii = "%a[.)]", -- a) b) c) ... roman = "%u*[.)]", -- I. II. III. ... latex_item = "\\item", } require("autolist").setup({ enabled = true, lists = { markdown = { list_patterns.unordered, list_patterns.digit, list_patterns.ascii, list_patterns.roman, }, }, }) end, } ```