feat(nvim): add blockquotes to autolist for markdown
This commit is contained in:
parent
93723dc2c6
commit
1c3c04da4b
@ -12,6 +12,13 @@ return {
|
||||
"yaml.ansible",
|
||||
},
|
||||
config = function()
|
||||
local list_patterns = {
|
||||
unordered = "[-+*]", -- - + *
|
||||
digit = "%d+[.)]", -- 1. 2. 3.
|
||||
ascii = "%a[.)]", -- a) b) c)
|
||||
roman = "%u*[.)]", -- I. II. III.
|
||||
}
|
||||
|
||||
require("autolist").setup({
|
||||
colon = {
|
||||
indent_raw = false,
|
||||
@ -23,6 +30,13 @@ return {
|
||||
["yaml.ansible"] = {
|
||||
"[-]",
|
||||
},
|
||||
markdown = {
|
||||
list_patterns.unordered,
|
||||
list_patterns.digit,
|
||||
list_patterns.ascii,
|
||||
list_patterns.roman,
|
||||
">"
|
||||
}
|
||||
},
|
||||
})
|
||||
local autolist_group = vim.api.nvim_create_augroup("Autolist", {})
|
||||
@ -106,4 +120,4 @@ return {
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user