mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
style(neovim): Markdown render & formatting updates
- Render markdown: nit: remove all `render_modes` incorrect configs - Render markdown: add blink completions for checkboxes - Render markdown: Disable indent - `indent-blankline` already takes care of it - Render markdown: Use `obsidian` preset configuration - Markdownlint: More rules
This commit is contained in:
@@ -30,42 +30,23 @@ return {
|
|||||||
vim.cmd(string.format([[highlight Headline6Fg cterm=bold gui=bold guifg=%s]], color6_bg))
|
vim.cmd(string.format([[highlight Headline6Fg cterm=bold gui=bold guifg=%s]], color6_bg))
|
||||||
end,
|
end,
|
||||||
opts = {
|
opts = {
|
||||||
|
preset = "obsidian",
|
||||||
code = {
|
code = {
|
||||||
render_modes = true,
|
|
||||||
sign = false,
|
sign = false,
|
||||||
width = "block",
|
width = "block",
|
||||||
border = "thick",
|
border = "thin",
|
||||||
position = "right",
|
position = "right",
|
||||||
language_name = false,
|
language_name = false,
|
||||||
right_pad = 1,
|
right_pad = 1,
|
||||||
},
|
},
|
||||||
heading = {
|
heading = {
|
||||||
sign = false,
|
|
||||||
icons = { " ", " ", " ", " ", " ", " " },
|
icons = { " ", " ", " ", " ", " ", " " },
|
||||||
|
sign = false,
|
||||||
width = "block",
|
width = "block",
|
||||||
right_pad = 1,
|
right_pad = 1,
|
||||||
-- position = { "right" },
|
|
||||||
},
|
|
||||||
paragraph = {
|
|
||||||
render_modes = true,
|
|
||||||
},
|
|
||||||
bullet = {
|
|
||||||
render_modes = true,
|
|
||||||
},
|
|
||||||
checkbox = {
|
|
||||||
render_modes = true,
|
|
||||||
},
|
|
||||||
quote = {
|
|
||||||
render_modes = true,
|
|
||||||
},
|
|
||||||
pipe_table = {
|
|
||||||
preset = "round",
|
|
||||||
},
|
|
||||||
indent = {
|
|
||||||
enabled = true,
|
|
||||||
render_modes = true,
|
|
||||||
skip_heading = true,
|
|
||||||
},
|
},
|
||||||
|
indent = { enabled = false, skip_heading = true, icon = "" },
|
||||||
|
completions = { blink = { enabled = true } },
|
||||||
},
|
},
|
||||||
ft = { "markdown", "norg", "rmd", "org" },
|
ft = { "markdown", "norg", "rmd", "org" },
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
|
|||||||
@@ -5,8 +5,10 @@
|
|||||||
"MD038": false, // allow spaces inside code span elements
|
"MD038": false, // allow spaces inside code span elements
|
||||||
"MD051": false, // do NOT check #links should match actual headings in the document
|
"MD051": false, // do NOT check #links should match actual headings in the document
|
||||||
"MD003": { "style": "consistent" },
|
"MD003": { "style": "consistent" },
|
||||||
|
"MD004": { "style": "consistent" },
|
||||||
"MD007": { "indent": 4 },
|
"MD007": { "indent": 4 },
|
||||||
"MD029": { "style": "ordered" },
|
"MD029": { "style": "ordered" },
|
||||||
|
"MD035": { "style": "consistent" },
|
||||||
"MD046": { "style": "fenced" },
|
"MD046": { "style": "fenced" },
|
||||||
"MD049": { "style": "asterisk" },
|
"MD049": { "style": "asterisk" },
|
||||||
"MD050": { "style": "asterisk" }
|
"MD050": { "style": "asterisk" }
|
||||||
|
|||||||
Reference in New Issue
Block a user