nvim: add folding options (especially for markdown)

This commit is contained in:
inkch 2024-03-06 16:47:26 +09:00
parent d106ea1053
commit 8ff62cef14

View File

@ -58,3 +58,11 @@ vim.cmd([[ autocmd InsertLeave * call system("fcitx5-remote -c") ]])
vim.cmd("set clipboard+=unnamedplus") vim.cmd("set clipboard+=unnamedplus")
-- folding
vim.opt.fillchars = { fold = " " }
vim.opt.foldmethod = "indent"
vim.opt.foldenable = false
vim.opt.foldlevel = 99
vim.g.markdown_folding = 1 -- enable markdown folding