summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/render-markdown.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/plugins/render-markdown.lua')
-rw-r--r--.config/nvim/lua/plugins/render-markdown.lua33
1 files changed, 8 insertions, 25 deletions
diff --git a/.config/nvim/lua/plugins/render-markdown.lua b/.config/nvim/lua/plugins/render-markdown.lua
index d0d0639..3f2a800 100644
--- a/.config/nvim/lua/plugins/render-markdown.lua
+++ b/.config/nvim/lua/plugins/render-markdown.lua
@@ -1,25 +1,8 @@
--- 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>)',
- }
- }
-}
+vim.pack.add({
+ 'https://github.com/nvim-treesitter/nvim-treesitter',
+ 'https://github.com/nvim-mini/mini.nvim', -- if you use the mini.nvim suite
+ -- 'https://github.com/nvim-mini/mini.icons', -- if you use standalone mini plugins
+ -- 'https://github.com/nvim-tree/nvim-web-devicons', -- if you prefer nvim-web-devicons
+ 'https://github.com/MeanderingProgrammer/render-markdown.nvim',
+})
+require('render-markdown').setup({}) -- only mandatory if you want to set custom options