From 1f160e3bb707f68f24bc36f2131995c5a2d43812 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 1 Oct 2024 15:22:56 -0500 Subject: [PATCH] feat(nvim): improve markdown `formatlistpat` --- users/price/dots/.config/nvim/after/ftplugin/markdown.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/users/price/dots/.config/nvim/after/ftplugin/markdown.lua b/users/price/dots/.config/nvim/after/ftplugin/markdown.lua index 14996b50..bda372cc 100644 --- a/users/price/dots/.config/nvim/after/ftplugin/markdown.lua +++ b/users/price/dots/.config/nvim/after/ftplugin/markdown.lua @@ -22,3 +22,5 @@ vim.keymap.set("n", "", function() vim.api.nvim_buf_set_lines(0, cur_line - 1, cur_line, true, { updated_task_str }) end end, { buffer = true }) + +vim.opt.formatlistpat = [[^\s*\(-\|\d\+\.|+\|>\)\s*]]