summaryrefslogtreecommitdiff
path: root/.config/nvim_old/lua/plugins/render-markdown.lua
blob: d0d063995459bd36e23ab11d778e72efa535a0df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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>)',
    }
  }
}