From 1c3c04da4b52b8fc8bec26af07a85990d3485807 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 28 Aug 2023 15:54:59 -0500 Subject: [PATCH] feat(nvim): add blockquotes to autolist for markdown --- .../nvim/lua/plugins/configs/autolist.lua | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/dots/.config/nvim/lua/plugins/configs/autolist.lua b/dots/.config/nvim/lua/plugins/configs/autolist.lua index 99ddb8f0..0ad51ac2 100644 --- a/dots/.config/nvim/lua/plugins/configs/autolist.lua +++ b/dots/.config/nvim/lua/plugins/configs/autolist.lua @@ -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, }, -} +} \ No newline at end of file