diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-12 11:51:23 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-12 11:52:48 +0200 |
| commit | 9236e1f700b028da61302be8371401fe0fd86f0c (patch) | |
| tree | 45766e7dc097e56eebc9e58e1d1b83de09f4ffc0 | |
| parent | 812025bee178a4959bdca10b3e6c8d84ca3580d9 (diff) | |
| download | dotfiles-9236e1f700b028da61302be8371401fe0fd86f0c.tar.gz dotfiles-9236e1f700b028da61302be8371401fe0fd86f0c.zip | |
misc(nvim): wrap text only visually in markdown buffers
| -rw-r--r-- | .config/nvim/after/ftplugin/markdown.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.config/nvim/after/ftplugin/markdown.lua b/.config/nvim/after/ftplugin/markdown.lua index f0f9691..972e9b1 100644 --- a/.config/nvim/after/ftplugin/markdown.lua +++ b/.config/nvim/after/ftplugin/markdown.lua @@ -7,8 +7,9 @@ vim.opt_local.number = false vim.opt_local.relativenumber = false vim.opt_local.signcolumn = "auto" vim.opt_local.foldcolumn = "0" --- -vim.opt_local.textwidth = vim.g.dotfiles.textwidth.markdown -- gw wraps at this value + +vim.opt_local.textwidth = 0 -- No automatic text wrapping (use Semantic Lines Breaks instead! https://sembr.org/) +vim.opt_local.wrap = true -- There is a bug where folded fenced code blocks will be completely invisible -- But (apparently) it only happen when there is a # heading (and no ## heading, no ### heading etc) -- Probably caused by tree-sitter parsing, but it's not really a problem, since adding a ## heading fixes it |
