aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/50-markdown.lua
blob: d033d32c394066de493bacbe0b0640d8e7a7a126 (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
--
-- Markdown rendering plugin
--
-- Uses `render-markdown`, see https://github.com/MeanderingProgrammer/render-markdown.nvim

vim.pack.add({
	"https://github.com/nvim-treesitter/nvim-treesitter",
	"https://github.com/nvim-tree/nvim-web-devicons",
	"https://github.com/MeanderingProgrammer/render-markdown.nvim",
})

require("nvim-treesitter").install({
	"html",
	"latex",
	"markdown",
	"markdown_inline",
	"yaml",
})

require("render-markdown").setup({
	heading = { width = "block", min_width = 120 },
	code = { position = "center", sign = false, width = "block", min_width = 60, left_margin = 2 },
	dash = { width = 120 },
})