summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-05-29 15:50:31 +0200
committerThomas Vanbesien <tvanbesi@proton.me>2026-05-29 15:50:31 +0200
commite55908d472d937be0d79a3ea836d56484550425f (patch)
treee0a55e0e7f06785a091047482f037ae4324253ac
parentfe3a9f890a52d08f65fb2ba90a892bafd36451ed (diff)
downloaddotfiles-e55908d472d937be0d79a3ea836d56484550425f.tar.gz
dotfiles-e55908d472d937be0d79a3ea836d56484550425f.zip
misc(nvim): add comment about non-bug (invisible fenced code blocks)
-rw-r--r--.config/nvim/after/ftplugin/markdown.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/nvim/after/ftplugin/markdown.lua b/.config/nvim/after/ftplugin/markdown.lua
index 68fdbda..2de456f 100644
--- a/.config/nvim/after/ftplugin/markdown.lua
+++ b/.config/nvim/after/ftplugin/markdown.lua
@@ -60,6 +60,10 @@ vim.opt_local.signcolumn = "auto"
vim.opt_local.foldcolumn = "0"
--
vim.opt_local.textwidth = vim.g.dotfiles.textwidth.markdown -- gw wraps at this value
+-- 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
+-- Just remember this and don't try to fix it again!
vim.opt_local.foldlevel = 1
vim.opt_local.complete = {
"o", -- 'omnifunc'