summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/render-markdown.lua
diff options
context:
space:
mode:
authorCryxtalix <fgx8p9t@protonmail.com>2024-11-08 21:58:55 +0800
committerCryxtalix <fgx8p9t@protonmail.com>2024-11-08 21:58:55 +0800
commitdc839e971ad6a724bc99bccc6dfaa11ee8a1eaa9 (patch)
tree79e1ee75429a5ef500f716d3675aeec6c52dcda1 /.config/nvim/lua/plugins/render-markdown.lua
Init gnu stow
Diffstat (limited to '.config/nvim/lua/plugins/render-markdown.lua')
-rw-r--r--.config/nvim/lua/plugins/render-markdown.lua25
1 files changed, 25 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/render-markdown.lua b/.config/nvim/lua/plugins/render-markdown.lua
new file mode 100644
index 0000000..d0d0639
--- /dev/null
+++ b/.config/nvim/lua/plugins/render-markdown.lua
@@ -0,0 +1,25 @@
+-- https://github.com/MeanderingProgrammer/render-markdown.nvim
+return {
+ {
+ 'MeanderingProgrammer/render-markdown.nvim',
+ opts = {},
+ dependencies = { 'nvim-treesitter/nvim-treesitter', 'echasnovski/mini.nvim' }
+ },
+ {
+ 'ChuufMaster/markdown-toc', --https://github.com/ChuufMaster/markdown-toc
+ -- ":GenerateTOC"
+ -- ":DeleteTOC"
+ opts = {
+
+ -- The heading level to match (i.e the number of "#"s to match to) max 6
+ heading_level_to_match = -1,
+
+ -- Set to True display a dropdown to allow you to select the heading level
+ ask_for_heading_level = false,
+
+ -- TOC default string
+ -- WARN
+ toc_format = '%s- [%s](<%s#%s>)',
+ }
+ }
+}