summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-05-17 13:37:59 +0200
committerThomas Vanbesien <tvanbesi@proton.me>2026-05-17 13:37:59 +0200
commit9da1d7eb00f73d05dfc1932442401314a319e39d (patch)
treedbe70634dc6b09b8fef241536436ca3205386e88
parent853bebedd1cbf78039f95645c753bee3826f7dae (diff)
downloaddotfiles-9da1d7eb00f73d05dfc1932442401314a319e39d.tar.gz
dotfiles-9da1d7eb00f73d05dfc1932442401314a319e39d.zip
misc: extract magic number
-rw-r--r--.config/nvim/plugin/50-markdown.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/.config/nvim/plugin/50-markdown.lua b/.config/nvim/plugin/50-markdown.lua
index d033d32..58ce40e 100644
--- a/.config/nvim/plugin/50-markdown.lua
+++ b/.config/nvim/plugin/50-markdown.lua
@@ -17,8 +17,9 @@ require("nvim-treesitter").install({
"yaml",
})
+local markdown_textwidth = 120
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 },
+ heading = { width = "block", min_width = markdown_textwidth },
+ code = { position = "center", sign = false, width = "block", min_width = markdown_textwidth / 2, left_margin = 2 },
+ dash = { width = markdown_textwidth },
})