summaryrefslogtreecommitdiffstats
path: root/.config/nvim/plugin/50-markdown.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/plugin/50-markdown.lua')
-rw-r--r--.config/nvim/plugin/50-markdown.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/.config/nvim/plugin/50-markdown.lua b/.config/nvim/plugin/50-markdown.lua
new file mode 100644
index 0000000..d033d32
--- /dev/null
+++ b/.config/nvim/plugin/50-markdown.lua
@@ -0,0 +1,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 },
+})