feat(nvim): add blockquotes to autolist for markdown

This commit is contained in:
Price Hiller 2023-08-28 15:54:59 -05:00
parent 93723dc2c6
commit 1c3c04da4b
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -12,6 +12,13 @@ return {
"yaml.ansible", "yaml.ansible",
}, },
config = function() config = function()
local list_patterns = {
unordered = "[-+*]", -- - + *
digit = "%d+[.)]", -- 1. 2. 3.
ascii = "%a[.)]", -- a) b) c)
roman = "%u*[.)]", -- I. II. III.
}
require("autolist").setup({ require("autolist").setup({
colon = { colon = {
indent_raw = false, indent_raw = false,
@ -23,6 +30,13 @@ return {
["yaml.ansible"] = { ["yaml.ansible"] = {
"[-]", "[-]",
}, },
markdown = {
list_patterns.unordered,
list_patterns.digit,
list_patterns.ascii,
list_patterns.roman,
">"
}
}, },
}) })
local autolist_group = vim.api.nvim_create_augroup("Autolist", {}) local autolist_group = vim.api.nvim_create_augroup("Autolist", {})
@ -106,4 +120,4 @@ return {
}) })
end, end,
}, },
} }