-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender-markdown.lua
More file actions
61 lines (58 loc) · 1.78 KB
/
Copy pathrender-markdown.lua
File metadata and controls
61 lines (58 loc) · 1.78 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
local filetypes =
{ "markdown", "codecompanion", "latex", "tex", "typst", "yaml", "rmd", "atlassian_jira", "atlassian_confluence" }
local M = {
"MeanderingProgrammer/render-markdown.nvim",
dependencies = { "nvim-treesitter/nvim-treesitter", "echasnovski/mini.nvim" },
ft = filetypes,
}
M.config = function()
-- Register markdown treesitter parser for Atlassian filetypes
vim.treesitter.language.register("markdown", "atlassian_jira")
vim.treesitter.language.register("markdown", "atlassian_confluence")
require("render-markdown").setup({
render_modes = true,
file_types = filetypes,
completions = {
lsp = {
enabled = true,
},
},
heading = {
icons = { " ", " ", " ", " ", " ", " " },
signs = { " " },
width = "block",
left_pad = 0,
right_pad = 4,
},
code = {
style = "full",
sign = false,
width = "block",
min_width = 80,
},
latex = {
enabled = true,
render_modes = false,
converter = "latex2text",
highlight = "RenderMarkdownMath",
position = "above",
top_pad = 0,
bottom_pad = 0,
},
checkbox = {
enabled = true,
position = "inline",
unchecked = {
icon = " ",
highlight = "RenderMarkdownUnchecked",
scope_highlight = nil,
},
checked = {
icon = " ",
highlight = "RenderMarkdownChecked",
scope_highlight = nil,
},
},
})
end
return M